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.
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−
1+app.ServiceWorker = class ServiceWorker extends Events {
142 static isEnabled() {
153 return !!navigator.serviceWorker && app.config.service_worker_enabled;
164 }
@@ -78,4 +66,3 @@ app.ServiceWorker = class ServiceWorker { · 61 unmodified lines
7866 }
7967 }
8068 };
81−app.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