From 6a55b63fa6ab6b7b9b443579f0891de0fe12caad Mon Sep 17 00:00:00 2001 From: SGavrl <277843151+SGavrl@users.noreply.github.com> Date: Mon, 3 Aug 2026 16:31:30 +0000 Subject: [PATCH] fix(js): isolate bootstrap declarations --- crates/obscura-js/js/bootstrap.js | 9 +++++ crates/obscura-js/src/runtime.rs | 64 +++++++++++++++++++++++++++---- 2 files changed, 65 insertions(+), 8 deletions(-) diff --git a/crates/obscura-js/js/bootstrap.js b/crates/obscura-js/js/bootstrap.js index 72a13ac..4ffed6c 100644 --- a/crates/obscura-js/js/bootstrap.js +++ b/crates/obscura-js/js/bootstrap.js @@ -1,4 +1,5 @@ "use strict"; +(function () { // Pre-declare all internal globals as non-enumerable so they are invisible // to Object.keys(window) / for-in enumeration. Must run before any var @@ -175,6 +176,12 @@ let _fpSeed = 0; // when SPAs dynamically insert multiple