1
0
Ver Fonte

Use hash to pass config path. Fix #67.

Herbert Vojčík há 9 anos atrás
pai
commit
b556c386c0
2 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      index.html
  2. 1 1
      index.js

+ 1 - 1
index.html

@@ -11,7 +11,7 @@
 
     <div id="includes">
       <script type='text/javascript'>
-        var base = decodeURIComponent(window.location.search.slice(1)).replace(/\/$/, "");
+        var base = decodeURIComponent(window.location.hash.slice(1)).replace(/\/$/, "");
         var script = document.createElement("script");
         script.src = base + "/config.js";
         document.getElementsByTagName("head")[0].appendChild(script);

+ 1 - 1
index.js

@@ -3,7 +3,7 @@ define(["require"], function (require) {
         pageUrl: function () {
             var a = document.createElement("a");
             a.href = require.toUrl("..");
-            return require.toUrl('./index.html') + "?" + encodeURIComponent(a.href);
+            return require.toUrl('./index.html') + "#" + encodeURIComponent(a.href);
         },
         popup: function () {
             window.open(this.pageUrl(), "Helios", "menubar=no, width=1000, height=600");