Change HTMLElement type check

Fix HTMLElement class extending problem for iOS 8 and 9
pull/3609/head
davidaq 6 years ago committed by GitHub
parent 4f26363fe0
commit 3706074b04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -132,7 +132,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