instruckt 0.4.17 → 0.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/instruckt.cjs.js
CHANGED
|
@@ -2377,9 +2377,8 @@ function hasShadowDOM() {
|
|
|
2377
2377
|
if ((_a2 = document.adoptedStyleSheets) == null ? void 0 : _a2.length) return true;
|
|
2378
2378
|
const el = document.querySelector("[data-flux], flux\\:button, flux\\:input, [is]");
|
|
2379
2379
|
if (el) return true;
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2382
|
-
if (child.shadowRoot) return true;
|
|
2380
|
+
for (const child of document.body.querySelectorAll("*")) {
|
|
2381
|
+
if (child.shadowRoot && !child.hasAttribute("data-instruckt")) return true;
|
|
2383
2382
|
}
|
|
2384
2383
|
return false;
|
|
2385
2384
|
}
|