diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js index 232f1170..81dd1210 100644 --- a/godoc/static/godocs.js +++ b/godoc/static/godocs.js @@ -152,7 +152,7 @@ function setupDropdownPlayground() { 'runEl': $('.run', div), 'fmtEl': $('.fmt', div), 'shareEl': $('.share', div), - 'shareRedirect': 'http://play.golang.org/p/' + 'shareRedirect': '//play.golang.org/p/' }); }, function() { @@ -176,7 +176,7 @@ function setupInlinePlayground() { 'runEl': $('.run', el), 'fmtEl': $('.fmt', el), 'shareEl': $('.share', el), - 'shareRedirect': 'http://play.golang.org/p/' + 'shareRedirect': '//play.golang.org/p/' }); // Make the code textarea resize to fit content. diff --git a/godoc/static/static.go b/godoc/static/static.go index b2a00a56..2adb8858 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -726,7 +726,7 @@ function setupDropdownPlayground() { 'runEl': $('.run', div), 'fmtEl': $('.fmt', div), 'shareEl': $('.share', div), - 'shareRedirect': 'http://play.golang.org/p/' + 'shareRedirect': '//play.golang.org/p/' }); }, function() { @@ -750,7 +750,7 @@ function setupInlinePlayground() { 'runEl': $('.run', el), 'fmtEl': $('.fmt', el), 'shareEl': $('.share', el), - 'shareRedirect': 'http://play.golang.org/p/' + 'shareRedirect': '//play.golang.org/p/' }); // Make the code textarea resize to fit content.