Browse Source

Use `global` global variable.

As it is not defined in browser, polyfill it there.
Herby Vojčík 6 years ago
parent
commit
3b9dacc0c1
1 changed files with 1 additions and 0 deletions
  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";