instruckt 0.4.18 → 0.4.19
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
|
@@ -2373,10 +2373,7 @@ function nodeFilter(node) {
|
|
|
2373
2373
|
return true;
|
|
2374
2374
|
}
|
|
2375
2375
|
function hasShadowDOM() {
|
|
2376
|
-
|
|
2377
|
-
if ((_a2 = document.adoptedStyleSheets) == null ? void 0 : _a2.length) return true;
|
|
2378
|
-
const el = document.querySelector("[data-flux], flux\\:button, flux\\:input, [is]");
|
|
2379
|
-
if (el) return true;
|
|
2376
|
+
if (document.querySelector("[data-flux], flux\\:button, flux\\:input")) return true;
|
|
2380
2377
|
for (const child of document.body.querySelectorAll("*")) {
|
|
2381
2378
|
if (child.shadowRoot && !child.hasAttribute("data-instruckt")) return true;
|
|
2382
2379
|
}
|