Skip to content

The headless browser for AI agents and web scraping

fix(js): wrap bootstrap in an IIFE so DOM classes stop leaking into script scope

Diego Cavalcantee85d1dc0bf68
diff --git a/crates/obscura-js/js/bootstrap.js b/crates/obscura-js/js/bootstrap.js
index 3215d791..270cd2b3 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
@@ -8856,3 +8857,5 @@ if (typeof Response !== 'undefined' && Response.prototype && !Response.prototype
if (typeof val === 'function') { walk(val); }
}
})();
+
+})();