Recherche partout (#68) : JS compatible ESM (test ObsiGate)
CI / test (push) Failing after 1s
CI / test (pull_request) Failing after 3s

This commit is contained in:
2026-10-28 12:18:15 -04:00
parent 725f78cb68
commit d41a79a9ed
+11 -1
View File
@@ -39,6 +39,10 @@
*/
(function (global) {
"use strict";
/* globalThis : le fichier est chargé comme script classique dans les
* navigateurs, requis en CJS par les tests TikTak/Kanbante/Flowdeck,
* et importé en ESM par le test ObsiGate (frontend/js est "type":
* "module") — où `this` de niveau supérieur vaut undefined. */
var PROD = {
obsigate: "https://og.dracodev.net/",
@@ -501,4 +505,10 @@
} else {
init();
}
})(typeof window !== "undefined" ? window : this);
})(
typeof window !== "undefined"
? window
: typeof globalThis !== "undefined"
? globalThis
: this
);