Change HTMLElement type check

Fix HTMLElement class extending problem for iOS 8 and 9
pull/7738/head
davidaq 6 years ago committed by Conduitry
parent 9c73f8e77d
commit e604b20541

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

Loading…
Cancel
Save