mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] format
This commit is contained in:
parent
cf9b2ff796
commit
6a93b5379a
2 changed files with 6 additions and 5 deletions
|
@ -7,9 +7,9 @@ async function polyfill() {
|
|||
});
|
||||
}
|
||||
|
||||
const polyfillCheckEl = Document
|
||||
.parseHTMLUnsafe(`<p><template shadowrootmode="open"></template></p>`)
|
||||
.querySelector('p');
|
||||
const polyfillCheckEl = Document.parseHTMLUnsafe(
|
||||
`<p><template shadowrootmode="open"></template></p>`
|
||||
).querySelector('p');
|
||||
|
||||
if (!polyfillCheckEl?.shadowRoot) {
|
||||
polyfill();
|
||||
|
|
5
packages/integrations/lit/client-shim.min.js
vendored
5
packages/integrations/lit/client-shim.min.js
vendored
|
@ -79,6 +79,7 @@ async function g() {
|
|||
let { hydrateShadowRoots: t } = await Promise.resolve().then(() => (S(), v));
|
||||
window.addEventListener('DOMContentLoaded', () => t(document.body), { once: true });
|
||||
}
|
||||
var x = Document.parseHTMLUnsafe('<p><template shadowrootmode="open"></template></p>')
|
||||
.querySelector('p');
|
||||
var x = Document.parseHTMLUnsafe(
|
||||
'<p><template shadowrootmode="open"></template></p>'
|
||||
).querySelector('p');
|
||||
(!x || !x.shadowRoot) && g();
|
||||
|
|
Loading…
Add table
Reference in a new issue