History

class ServiceWorker extends Evented

Simon Legner committed 2 years ago

Commit 92144081 parent c70e01f1 file · +1 −14Browse files

Unified · Split

assets/javascripts/app/serviceworker.js+1−14
@@ -1,16 +1,4 @@
1// TODO: This file was created by bulk-decaffeinate.1app.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 */
9app.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};
81app.ServiceWorker.initClass();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t