Change HTMLElement type check

Fix HTMLElement class extending problem for iOS 8 and 9
pull/3682/head
davidaq 5 years ago committed by Conduitry
parent 729bb12d17
commit 0eb825b458

@ -133,7 +133,7 @@ export function init(component, options, instance, create_fragment, not_equal, p
}
export let SvelteElement;
if (typeof HTMLElement !== 'undefined') {
if (typeof HTMLElement === 'function') {
SvelteElement = class extends HTMLElement {
$$: T$$;
constructor() {

Loading…
Cancel
Save