Skip to content

Commit

Permalink
Fix error when window.HTMLElement is undefined
Browse files Browse the repository at this point in the history
See also missive#699
  • Loading branch information
TranquilMarmot committed Sep 15, 2022
1 parent 2054b15 commit b84dd70
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { getProp } from '../../config'

const WindowHTMLElement =
typeof window !== 'undefined' ? window.HTMLElement : Object
typeof window !== 'undefined' && window.HTMLElement !== undefined
? window.HTMLElement
: Object

export default class HTMLElement extends WindowHTMLElement {
static get observedAttributes() {
Expand Down

0 comments on commit b84dd70

Please sign in to comment.