diff --git a/package.json b/package.json index c0ae27a..451c3cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wkitd", - "version": "1.3.10", + "version": "1.3.11", "type": "module", "main": "dist/index.js", "files": [ diff --git a/src/index.js b/src/index.js index 99cf407..9da3eb6 100644 --- a/src/index.js +++ b/src/index.js @@ -92,7 +92,7 @@ export function createApp({ } } } - App.reg('app') + App.reg('app', 'v') } })() } diff --git a/src/router/router-components.js b/src/router/router-components.js index 790507a..d266365 100644 --- a/src/router/router-components.js +++ b/src/router/router-components.js @@ -191,10 +191,5 @@ class RouterLink extends Component { } } -if (!customElements.get('router-view')) { - customElements.define('router-view', RouterView) -} - -if (!customElements.get('router-link')) { - customElements.define('router-link', RouterLink) -} +RouterView.reg('view', 'router') +RouterLink.reg('link', 'router')