Browse Source

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

Herby Vojčík 3 years ago
parent
commit
414f4c75d0
1 changed files with 2 additions and 0 deletions
  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";