From f95b5b9b8002d0227f894dc6add43acf7994c0ed Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Fri, 20 Feb 2015 11:25:06 -0800 Subject: Scaladoc js location synch more robust Tested on: - Mac: FF35/Safari 8/Chrome 41 - Win: IE11 --- src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js index 96689ae701..38dd248c29 100644 --- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js +++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js @@ -70,7 +70,7 @@ function setFrameSrcFromUrlFragment() { var loc = fragment.split("@")[0].replace(/\./g, "/"); if(loc.indexOf(".html") < 0) loc += ".html"; if(fragment.indexOf('@') > 0) loc += ("#" + fragment.split("@", 2)[1]); - frames["template"].location.replace(loc); + frames["template"].location.replace(location.protocol + loc); } else frames["template"].location.replace("package.html"); -- cgit v1.2.3