summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/integrations/lit/client-shim.js10
-rw-r--r--packages/integrations/lit/client-shim.min.js10
2 files changed, 14 insertions, 6 deletions
diff --git a/packages/integrations/lit/client-shim.js b/packages/integrations/lit/client-shim.js
index c457710b7..a798dba4d 100644
--- a/packages/integrations/lit/client-shim.js
+++ b/packages/integrations/lit/client-shim.js
@@ -8,9 +8,13 @@ async function polyfill() {
}
const polyfillCheckEl = new DOMParser()
- .parseFromString(`<p><template shadowroot="open" shadowrootmode="open"></template></p>`, 'text/html', {
- includeShadowRoots: true,
- })
+ .parseFromString(
+ `<p><template shadowroot="open" shadowrootmode="open"></template></p>`,
+ 'text/html',
+ {
+ includeShadowRoots: true,
+ }
+ )
.querySelector('p');
if (!polyfillCheckEl || !polyfillCheckEl.shadowRoot) {
diff --git a/packages/integrations/lit/client-shim.min.js b/packages/integrations/lit/client-shim.min.js
index 0965e6a78..2e3d07ae7 100644
--- a/packages/integrations/lit/client-shim.min.js
+++ b/packages/integrations/lit/client-shim.min.js
@@ -80,8 +80,12 @@ async function g() {
window.addEventListener('DOMContentLoaded', () => t(document.body), { once: true });
}
var x = new DOMParser()
- .parseFromString('<p><template shadowroot="open" shadowrootmode="open"></template></p>', 'text/html', {
- includeShadowRoots: !0,
- })
+ .parseFromString(
+ '<p><template shadowroot="open" shadowrootmode="open"></template></p>',
+ 'text/html',
+ {
+ includeShadowRoots: !0,
+ }
+ )
.querySelector('p');
(!x || !x.shadowRoot) && g();