Explorar el Código

Define `globalThis`, leave `global` definition as deprecated.

Herby Vojčík hace 3 años
padre
commit
414f4c75d0
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      index.html

+ 2 - 0
index.html

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