Преглед на файлове

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 преди 1 седмица
родител
ревизия
b8cfc5c549
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  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";