1
0
Pārlūkot izejas kodu

Use `global` global variable.

As it is not defined in browser, polyfill it there.
Herby Vojčík 6 gadi atpakaļ
vecāks
revīzija
3b9dacc0c1
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      index.html

+ 1 - 0
index.html

@@ -11,6 +11,7 @@
 
     <div id="includes">
       <script type='text/javascript'>
+        var global = typeof global === "undefined" ? window : global || window;
         var base = decodeURIComponent(window.location.hash.slice(1)).replace(/\/$/, "");
         var script = document.createElement("script");
         script.src = base + "/config.js";