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

Don't use class fields

not supported in firefox 68
parent 6e2e7457
No related branches found
No related tags found
No related merge requests found
Pipeline #14111 passed
...@@ -55,15 +55,6 @@ const ensureURL = function(urlOrPath) { ...@@ -55,15 +55,6 @@ const ensureURL = function(urlOrPath) {
*/ */
export class KeycloakWrapper extends EventTarget { export class KeycloakWrapper extends EventTarget {
/* Minimum validity of the token in seconds */
MIN_VALIDITY = 20;
/* Interval at which the token validity is checked, in seconds */
CHECK_INTERVAL = 10;
/* Enables extra debug logging */
DEBUG = false;
constructor(baseURL, realm, clientId, silentCheckSsoUri, idpHint) { constructor(baseURL, realm, clientId, silentCheckSsoUri, idpHint) {
super(); super();
...@@ -76,6 +67,15 @@ export class KeycloakWrapper extends EventTarget { ...@@ -76,6 +67,15 @@ export class KeycloakWrapper extends EventTarget {
this._idpHint = idpHint; this._idpHint = idpHint;
this._checkId = null; this._checkId = null;
/* Minimum validity of the token in seconds */
this.MIN_VALIDITY = 20;
/* Interval at which the token validity is checked, in seconds */
this.CHECK_INTERVAL = 10;
/* Enables extra debug logging */
this.DEBUG = false;
this._onVisibilityChanged = this._onVisibilityChanged.bind(this); this._onVisibilityChanged = this._onVisibilityChanged.bind(this);
document.addEventListener("visibilitychange", this._onVisibilityChanged); document.addEventListener("visibilitychange", this._onVisibilityChanged);
} }
......
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