class ServiceWorker extends Evented

pull/1441/head
Simon Legner 1 year ago
parent c70e01fa53
commit 92144087a3

@ -1,16 +1,4 @@
// TODO: This file was created by bulk-decaffeinate. app.ServiceWorker = class ServiceWorker extends Events {
// Sanity-check the conversion and remove this comment.
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS206: Consider reworking classes to avoid initClass
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/
app.ServiceWorker = class ServiceWorker {
static initClass() {
$.extend(this.prototype, Events);
}
static isEnabled() { static isEnabled() {
return !!navigator.serviceWorker && app.config.service_worker_enabled; return !!navigator.serviceWorker && app.config.service_worker_enabled;
} }
@ -78,4 +66,3 @@ app.ServiceWorker = class ServiceWorker {
} }
} }
}; };
app.ServiceWorker.initClass();

Loading…
Cancel
Save