Skip to content

Commit

Permalink
Merge pull request #699 from vowel-com/fix-htmlelement-undefined
Browse files Browse the repository at this point in the history
Fix error when window.HTMLElement is undefined
  • Loading branch information
EtienneLem committed Nov 6, 2022
2 parents 05713e1 + acbd2d2 commit 2144f8d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// @ts-nocheck
import { getProp } from '../../config'

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

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

0 comments on commit 2144f8d

Please sign in to comment.