Skip to content
Snippets Groups Projects
Commit 20c9f8a7 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Use defineCustomElement() from vpu-common

parent 4477c24d
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ import utils from './utils.js'; ...@@ -2,6 +2,7 @@ import utils from './utils.js';
import {i18n} from './i18n.js'; import {i18n} from './i18n.js';
import {html, LitElement} from 'lit-element'; import {html, LitElement} from 'lit-element';
import './vpu-auth'; import './vpu-auth';
import commonUtils from 'vpu-common/utils';
class AuthDemo extends LitElement { class AuthDemo extends LitElement {
constructor() { constructor() {
...@@ -43,4 +44,4 @@ class AuthDemo extends LitElement { ...@@ -43,4 +44,4 @@ class AuthDemo extends LitElement {
} }
} }
customElements.define('vpu-auth-demo', AuthDemo); commonUtils.defineCustomElement('vpu-auth-demo', AuthDemo);
...@@ -2,6 +2,7 @@ import {i18n} from './i18n.js'; ...@@ -2,6 +2,7 @@ import {i18n} from './i18n.js';
import {html, LitElement} from 'lit-element'; import {html, LitElement} from 'lit-element';
import JSONLD from 'vpu-common/jsonld' import JSONLD from 'vpu-common/jsonld'
import utils from "./utils"; import utils from "./utils";
import commonUtils from 'vpu-common/utils';
/** /**
* Keycloak auth web component * Keycloak auth web component
...@@ -225,4 +226,4 @@ class VPUAuth extends LitElement { ...@@ -225,4 +226,4 @@ class VPUAuth extends LitElement {
} }
} }
customElements.define('vpu-auth', VPUAuth); commonUtils.defineCustomElement('vpu-auth', VPUAuth);
common @ 68e0a4f1
Subproject commit c3547c33cd647446e5bc4873ed49bc760801c098 Subproject commit 68e0a4f1f1a3ef6e05aca5216bf8684578ec2229
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment