[ci] format

This commit is contained in:
matthewp 2023-02-01 13:46:50 +00:00 committed by fredkbot
parent 2567aa48bb
commit d7f36720d4
2 changed files with 14 additions and 6 deletions

View file

@ -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) {

View file

@ -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();