-
Notifications
You must be signed in to change notification settings - Fork 48
/
updater.patch
28 lines (25 loc) · 1.04 KB
/
updater.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/app/scripts/comp/app/updater.js b/app/scripts/comp/app/updater.js
index 127c5e82..c7887047 100644
--- a/app/scripts/comp/app/updater.js
+++ b/app/scripts/comp/app/updater.js
@@ -40,22 +40,6 @@ const Updater = {
init() {
this.scheduleNextCheck();
- if (!Launcher && navigator.serviceWorker && !RuntimeInfo.beta && !RuntimeInfo.devMode) {
- navigator.serviceWorker
- .register('service-worker.js')
- .then((reg) => {
- logger.info('Service worker registered');
- reg.addEventListener('updatefound', () => {
- if (reg.active) {
- logger.info('Service worker found an update');
- UpdateModel.set({ updateStatus: 'ready' });
- }
- });
- })
- .catch((e) => {
- logger.error('Failed to register a service worker', e);
- });
- }
},
scheduleNextCheck() {