Jelajahi Sumber

Drop the global and globalThis preambles from the popup page.

Both defined a global object for browsers older than the engines Amber
runs on; the first was already marked deprecated. Amber requires
globalThis natively since 0.30.0.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Herby Vojčík 4 hari lalu
induk
melakukan
b8cfc5c549
1 mengubah file dengan 0 tambahan dan 3 penghapusan
  1. 0 3
      index.html

+ 0 - 3
index.html

@@ -12,9 +12,6 @@
 <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";