Skip to content

Commit 8d7def7

Browse files
author
Steven Orvell
committed
don't depend on attachDom existing.
1 parent 707a376 commit 8d7def7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mixins/element-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ export const ElementMixin = dedupingMixin(base => {
672672
if (n.attachShadow) {
673673
if (dom) {
674674
if (!n.shadowRoot) {
675-
if (window.ShadyDOM) {
675+
if (window.ShadyDOM && ShadyDOM['attachDom']) {
676676
ShadyDOM['attachDom'](dom, this, {mode: 'open'});
677677
} else {
678678
n.attachShadow({mode: 'open'});

0 commit comments

Comments
 (0)