summaryrefslogtreecommitdiff
path: root/packages/integrations/lit/client-shim.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/lit/client-shim.min.js')
-rw-r--r--packages/integrations/lit/client-shim.min.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/packages/integrations/lit/client-shim.min.js b/packages/integrations/lit/client-shim.min.js
index 0c6a452d8..f9fe14fdd 100644
--- a/packages/integrations/lit/client-shim.min.js
+++ b/packages/integrations/lit/client-shim.min.js
@@ -8,7 +8,8 @@ var b = (t, n) => {
function s() {
if (d === void 0) {
let t = document.createElement('div');
- (t.innerHTML = '<div><template shadowroot="open"></template></div>'), (d = !!t.firstElementChild.shadowRoot);
+ (t.innerHTML = '<div><template shadowroot="open"></template></div>'),
+ (d = !!t.firstElementChild.shadowRoot);
}
return d;
}
@@ -18,7 +19,9 @@ var p,
c,
f,
u = i(() => {
- (p = (t) => t.parentElement === null), (c = (t) => t.tagName === 'TEMPLATE'), (f = (t) => t.nodeType === Node.ELEMENT_NODE);
+ (p = (t) => t.parentElement === null),
+ (c = (t) => t.tagName === 'TEMPLATE'),
+ (f = (t) => t.nodeType === Node.ELEMENT_NODE);
});
var h,
E = i(() => {
@@ -52,7 +55,8 @@ var h,
(e = r), o !== void 0 && o.parentElement.removeChild(o);
break;
}
- let l = (n = e.parentElement) === null || n === void 0 ? void 0 : n.nextElementSibling;
+ let l =
+ (n = e.parentElement) === null || n === void 0 ? void 0 : n.nextElementSibling;
if (l != null) {
(e = l), o !== void 0 && o.parentElement.removeChild(o);
break;
@@ -75,5 +79,9 @@ async function g() {
let { hydrateShadowRoots: t } = await Promise.resolve().then(() => (S(), v));
t(document.body);
}
-var x = new DOMParser().parseFromString('<p><template shadowroot="open"></template></p>', 'text/html', { includeShadowRoots: !0 }).querySelector('p');
+var x = new DOMParser()
+ .parseFromString('<p><template shadowroot="open"></template></p>', 'text/html', {
+ includeShadowRoots: !0,
+ })
+ .querySelector('p');
(!x || !x.shadowRoot) && g();