From 20c9f8a7304a66c59e3e6762b32e23bca0a0cec7 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Tue, 6 Aug 2019 14:48:14 +0200 Subject: [PATCH] Use defineCustomElement() from vpu-common --- packages/auth/src/vpu-auth-demo.js | 3 ++- packages/auth/src/vpu-auth.js | 3 ++- packages/auth/vendor/common | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/auth/src/vpu-auth-demo.js b/packages/auth/src/vpu-auth-demo.js index 1efe00c1..55f67106 100644 --- a/packages/auth/src/vpu-auth-demo.js +++ b/packages/auth/src/vpu-auth-demo.js @@ -2,6 +2,7 @@ import utils from './utils.js'; import {i18n} from './i18n.js'; import {html, LitElement} from 'lit-element'; import './vpu-auth'; +import commonUtils from 'vpu-common/utils'; class AuthDemo extends LitElement { constructor() { @@ -43,4 +44,4 @@ class AuthDemo extends LitElement { } } -customElements.define('vpu-auth-demo', AuthDemo); +commonUtils.defineCustomElement('vpu-auth-demo', AuthDemo); diff --git a/packages/auth/src/vpu-auth.js b/packages/auth/src/vpu-auth.js index e600752f..4c5637c7 100644 --- a/packages/auth/src/vpu-auth.js +++ b/packages/auth/src/vpu-auth.js @@ -2,6 +2,7 @@ import {i18n} from './i18n.js'; import {html, LitElement} from 'lit-element'; import JSONLD from 'vpu-common/jsonld' import utils from "./utils"; +import commonUtils from 'vpu-common/utils'; /** * Keycloak auth web component @@ -225,4 +226,4 @@ class VPUAuth extends LitElement { } } -customElements.define('vpu-auth', VPUAuth); +commonUtils.defineCustomElement('vpu-auth', VPUAuth); diff --git a/packages/auth/vendor/common b/packages/auth/vendor/common index c3547c33..68e0a4f1 160000 --- a/packages/auth/vendor/common +++ b/packages/auth/vendor/common @@ -1 +1 @@ -Subproject commit c3547c33cd647446e5bc4873ed49bc760801c098 +Subproject commit 68e0a4f1f1a3ef6e05aca5216bf8684578ec2229 -- GitLab