Don't fail when no option is provided to SvelteElement

pull/2516/head
Zephraph 7 years ago
parent f3d0d2938d
commit 9e55be0963

@ -115,7 +115,7 @@ export function init(component, options, instance, create_fragment, not_equal, p
export let SvelteElement;
if (typeof HTMLElement !== 'undefined') {
SvelteElement = class extends HTMLElement {
constructor({ use_shadow_dom = true } = {}) {
constructor({ use_shadow_dom = true } = { use_shadow_dom: true }) {
super();
if (use_shadow_dom) {
this.attachShadow({ mode: 'open' });

Loading…
Cancel
Save