Unified · Split
| @@ -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 | − */ | |
| 8 | 1 | app.UpdateChecker = class UpdateChecker { |
| 9 | 2 | constructor() { |
| 10 | 3 | this.lastCheck = Date.now(); |
| 11 | 4 | |
| 12 | 5 | $.on(window, "focus", () => this.onFocus()); |
| 13 | − if (app.serviceWorker != null) { | |
| 6 | + if (app.serviceWorker) { | |
| 14 | 7 | app.serviceWorker.on("updateready", () => this.onUpdateReady()); |
| 15 | 8 | } |
| 16 | 9 | |