1
0
Просмотр исходного кода

Use `global` global variable.

As it is not defined in browser, polyfill it there.
Herby Vojčík 6 лет назад
Родитель
Сommit
3b9dacc0c1
1 измененных файлов с 1 добавлено и 0 удалено
  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";