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 May 29, 2024
1 parent cf9b2ff commit 6a93b53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/integrations/lit/client-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 3 additions & 2 deletions packages/integrations/lit/client-shim.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 6a93b53

Please sign in to comment.