We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a3a36 commit 81bb981Copy full SHA for 81bb981
src/lib/index.js
@@ -3,6 +3,10 @@ import ChatWindow from './ChatWindow'
3
4
export const VueAdvancedChat = defineCustomElement(ChatWindow)
5
6
+const PACKAGE_NAME = 'vue-advanced-chat'
7
+
8
export function register() {
- customElements.define('vue-advanced-chat', VueAdvancedChat)
9
+ if (!customElements.get(PACKAGE_NAME)) {
10
+ customElements.define(PACKAGE_NAME, VueAdvancedChat)
11
+ }
12
}
0 commit comments