[ci] format
This commit is contained in:
parent
2567aa48bb
commit
d7f36720d4
2 changed files with 14 additions and 6 deletions
|
@ -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) {
|
||||
|
|
10
packages/integrations/lit/client-shim.min.js
vendored
10
packages/integrations/lit/client-shim.min.js
vendored
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue