summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-02-01 13:46:50 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-02-01 13:46:50 +0000
commitd7f36720d4683c6c1da389a15c5ab04a6de351b4 (patch)
tree0b75d1c18eee96c2cfcb983c5a4721f06d94d04a
parent2567aa48bba8751cf7e10429555f1e85830c9169 (diff)
downloadastro-d7f36720d4683c6c1da389a15c5ab04a6de351b4.tar.gz
astro-d7f36720d4683c6c1da389a15c5ab04a6de351b4.tar.zst
astro-d7f36720d4683c6c1da389a15c5ab04a6de351b4.zip
[ci] format
-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();