diff --git a/packages/integrations/lit/client-shim.js b/packages/integrations/lit/client-shim.js index c457710b7d2b..a798dba4dabe 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(`

`, 'text/html', { - includeShadowRoots: true, - }) + .parseFromString( + `

`, + '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 0965e6a78bb6..2e3d07ae7c07 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('

', 'text/html', { - includeShadowRoots: !0, - }) + .parseFromString( + '

', + 'text/html', + { + includeShadowRoots: !0, + } + ) .querySelector('p'); (!x || !x.shadowRoot) && g();