From 3706074b0412d03eee645790f20eafb32e27e08b Mon Sep 17 00:00:00 2001 From: davidaq Date: Sun, 22 Sep 2019 22:31:53 +0800 Subject: [PATCH] Change HTMLElement type check Fix HTMLElement class extending problem for iOS 8 and 9 --- src/runtime/internal/Component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index 92e227e57c..35009994ac 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -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() {