Commit d79e2705 authored by Matthieu Fesselier's avatar Matthieu Fesselier

syntax: fix lint

parent acb6c0e8
Pipeline #2884 passed with stage
in 53 seconds
import 'https://unpkg.com/oidc-client@1.6';
import { SIBBase, Helpers } from 'https://unpkg.com/@startinblox/core@0.6';
const base_url = import.meta.url.replace(/\/[^\/]*$/, '');
Helpers.importCSS(`${base_url}/sib-auth.css`)
const baseUrl = import.meta.url.replace(/\/[^/]*$/, '');
Helpers.importCSS(`${baseUrl}/sib-auth.css`);
class SIBAuth extends HTMLElement {
/**
......@@ -28,8 +28,9 @@ class SIBAuth extends HTMLElement {
async connectedCallback() {
this.install();
this.processState();
if (this.getUser())
if (this.getUser()) {
this.dispatchUserInfo(this.getUser());
}
}
/** @function
......@@ -223,7 +224,7 @@ class SIBAuth extends HTMLElement {
setUser(user) {
localStorage.setItem('oidc_user', JSON.stringify(user));
this.user = user;
this.dispatchUserInfo(user)
this.dispatchUserInfo(user);
}
/** @function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment