Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function WindowController(services) {
var _this = _super.call(this, services) || this;
_this.registrationToUse = null;
_this.publicVapidKeyToUse = null;
_this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
_this.tokenRefreshObserver = null;
_this.onMessageInternal = util.createSubscribe(function (observer) {
_this.messageObserver = observer;
});
_this.onTokenRefreshInternal = util.createSubscribe(function (observer) {
_this.tokenRefreshObserver = observer;
});
_this.setupSWMessageListener_();
return _this;
}
/**
function WindowController(app) {
var _this = _super.call(this, app) || this;
_this.registrationToUse = null;
_this.publicVapidKeyToUse = null;
_this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
_this.tokenRefreshObserver = null;
_this.onMessageInternal = util.createSubscribe(function (observer) {
_this.messageObserver = observer;
});
_this.onTokenRefreshInternal = util.createSubscribe(function (observer) {
_this.tokenRefreshObserver = observer;
});
_this.setupSWMessageListener_();
return _this;
}
/**
constructor(services) {
super(services);
this.registrationToUse = null;
this.publicVapidKeyToUse = null;
this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
this.tokenRefreshObserver = null;
this.onMessageInternal = createSubscribe(observer => {
this.messageObserver = observer;
});
this.onTokenRefreshInternal = createSubscribe(observer => {
this.tokenRefreshObserver = observer;
});
this.setupSWMessageListener_();
}
/**
function WindowController(app) {
var _this = _super.call(this, app) || this;
_this.registrationToUse = null;
_this.publicVapidKeyToUse = null;
_this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
_this.tokenRefreshObserver = null;
_this.onMessageInternal = createSubscribe(function (observer) {
_this.messageObserver = observer;
});
_this.onTokenRefreshInternal = createSubscribe(function (observer) {
_this.tokenRefreshObserver = observer;
});
_this.setupSWMessageListener_();
return _this;
}
/**
constructor(services) {
super(services);
this.registrationToUse = null;
this.publicVapidKeyToUse = null;
this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
this.tokenRefreshObserver = null;
this.onMessageInternal = createSubscribe(observer => {
this.messageObserver = observer;
});
this.onTokenRefreshInternal = createSubscribe(observer => {
this.tokenRefreshObserver = observer;
});
this.setupSWMessageListener_();
}
/**
constructor(app) {
super(app);
this.registrationToUse = null;
this.publicVapidKeyToUse = null;
this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
this.tokenRefreshObserver = null;
this.onMessageInternal = createSubscribe(observer => {
this.messageObserver = observer;
});
this.onTokenRefreshInternal = createSubscribe(observer => {
this.tokenRefreshObserver = observer;
});
this.setupSWMessageListener_();
}
/**
constructor(app) {
super(app);
this.registrationToUse = null;
this.publicVapidKeyToUse = null;
this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
this.tokenRefreshObserver = null;
this.onMessageInternal = createSubscribe(observer => {
this.messageObserver = observer;
});
this.onTokenRefreshInternal = createSubscribe(observer => {
this.tokenRefreshObserver = observer;
});
this.setupSWMessageListener_();
}
/**
function WindowController(services) {
var _this = _super.call(this, services) || this;
_this.registrationToUse = null;
_this.publicVapidKeyToUse = null;
_this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
_this.tokenRefreshObserver = null;
_this.onMessageInternal = createSubscribe(function (observer) {
_this.messageObserver = observer;
});
_this.onTokenRefreshInternal = createSubscribe(function (observer) {
_this.tokenRefreshObserver = observer;
});
_this.setupSWMessageListener_();
return _this;
}
/**
function WindowController(services) {
var _this = _super.call(this, services) || this;
_this.registrationToUse = null;
_this.publicVapidKeyToUse = null;
_this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
_this.tokenRefreshObserver = null;
_this.onMessageInternal = util.createSubscribe(function (observer) {
_this.messageObserver = observer;
});
_this.onTokenRefreshInternal = util.createSubscribe(function (observer) {
_this.tokenRefreshObserver = observer;
});
_this.setupSWMessageListener_();
return _this;
}
/**
function WindowController(app) {
var _this = _super.call(this, app) || this;
_this.registrationToUse = null;
_this.publicVapidKeyToUse = null;
_this.messageObserver = null;
// @ts-ignore: Unused variable error, this is not implemented yet.
_this.tokenRefreshObserver = null;
_this.onMessageInternal = createSubscribe(function (observer) {
_this.messageObserver = observer;
});
_this.onTokenRefreshInternal = createSubscribe(function (observer) {
_this.tokenRefreshObserver = observer;
});
_this.setupSWMessageListener_();
return _this;
}
/**