diff --git a/packages/notification/src/vpu-notification-demo.js b/packages/notification/src/vpu-notification-demo.js index dfece94b2143c86db499457704742dd335e9f7e2..31c4c0d3650640a55d0aae667c7d3034e01236f5 100644 --- a/packages/notification/src/vpu-notification-demo.js +++ b/packages/notification/src/vpu-notification-demo.js @@ -2,6 +2,7 @@ import {i18n} from './i18n'; import {send as notify} from './notification'; import {html, LitElement} from 'lit-element'; import './vpu-notification'; +import commonUtils from 'vpu-common/utils'; class NotificationDemo extends LitElement { constructor() { @@ -58,4 +59,4 @@ class NotificationDemo extends LitElement { } } -customElements.define('vpu-notification-demo', NotificationDemo); +commonUtils.defineCustomElement('vpu-notification-demo', NotificationDemo); diff --git a/packages/notification/src/vpu-notification.js b/packages/notification/src/vpu-notification.js index c34d09ebdaae448924f42fbab4df7dcda63a139d..e95fe4c97ad2b978b44e111a4bead3971313e433 100644 --- a/packages/notification/src/vpu-notification.js +++ b/packages/notification/src/vpu-notification.js @@ -1,7 +1,8 @@ import {i18n} from './i18n'; import utils from './utils' import {html} from 'lit-element'; -import VPULitElement from 'vpu-common/vpu-lit-element' +import VPULitElement from 'vpu-common/vpu-lit-element'; +import commonUtils from 'vpu-common/utils'; /** * Notification web component @@ -85,4 +86,4 @@ class VPUNotification extends VPULitElement { } } -customElements.define('vpu-notification', VPUNotification); +commonUtils.defineCustomElement('vpu-notification', VPUNotification); diff --git a/packages/notification/vendor/common b/packages/notification/vendor/common index 45e52fbec09bf05c7e287703fc78b3040af69ac7..68e0a4f1f1a3ef6e05aca5216bf8684578ec2229 160000 --- a/packages/notification/vendor/common +++ b/packages/notification/vendor/common @@ -1 +1 @@ -Subproject commit 45e52fbec09bf05c7e287703fc78b3040af69ac7 +Subproject commit 68e0a4f1f1a3ef6e05aca5216bf8684578ec2229