Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Feb 1, 2023
1 parent 2567aa4 commit d7f3672
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions packages/integrations/lit/client-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
10 changes: 7 additions & 3 deletions packages/integrations/lit/client-shim.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit d7f3672

Please sign in to comment.