History

Sanity-check decaffeinate app.UpdateChecker

Simon Legner committed 2 years ago

Commit c022a291 parent 8103c281 file · +1 −8Browse files

Showing the changes to assets/javascripts/app (1 of 1 file). Show all

Unified · Split

assets/javascripts/app/update_checker.js+1−8
@@ -1,16 +1,9 @@
1−// TODO: This file was created by bulk-decaffeinate.
2−// Sanity-check the conversion and remove this comment.
3−/*
4− * decaffeinate suggestions:
5− * DS207: Consider shorter variations of null checks
6− * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
7− */
81 app.UpdateChecker = class UpdateChecker {
92 constructor() {
103 this.lastCheck = Date.now();
114
125 $.on(window, "focus", () => this.onFocus());
13− if (app.serviceWorker != null) {
6+ if (app.serviceWorker) {
147 app.serviceWorker.on("updateready", () => this.onUpdateReady());
158 }
169

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