Unified · Split
| @@ -1,16 +1,4 @@ | |||
| 1 | // TODO: This file was created by bulk-decaffeinate. | 1 | app.ServiceWorker = class ServiceWorker extends Events { |
| 2 | // Sanity-check the conversion and remove this comment. | ||
| 3 | /* | ||
| 4 | * decaffeinate suggestions: | ||
| 5 | * DS102: Remove unnecessary code created because of implicit returns | ||
| 6 | * DS206: Consider reworking classes to avoid initClass | ||
| 7 | * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md | ||
| 8 | */ | ||
| 9 | app.ServiceWorker = class ServiceWorker { | ||
| 10 | static initClass() { | ||
| 11 | $.extend(this.prototype, Events); | ||
| 12 | } | ||
| 13 | |||
| 14 | static isEnabled() { | 2 | static isEnabled() { |
| 15 | return !!navigator.serviceWorker && app.config.service_worker_enabled; | 3 | return !!navigator.serviceWorker && app.config.service_worker_enabled; |
| 16 | } | 4 | } |
| @@ -78,4 +66,3 @@ app.ServiceWorker = class ServiceWorker { · 61 unmodified lines | |||
| 78 | } | 66 | } |
| 79 | } | 67 | } |
| 80 | }; | 68 | }; |
| 81 | app.ServiceWorker.initClass(); | ||