Explorar el Código

Use `global` global variable.

As it is not defined in browser, polyfill it there.
Herby Vojčík hace 6 años
padre
commit
3b9dacc0c1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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";