summarylogtreecommitdiffstats
path: root/01-disable-update-check.patch
blob: 70994acc6fd2bad598ee4accba9bd52c6bd3beae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -ura package.orig/src/main.js package.new/src/main.js
--- package.orig/src/main.js	2020-12-22 21:55:07.535806928 +0100
+++ package.new/src/main.js	2020-12-22 21:58:31.700431931 +0100
@@ -66,16 +66,6 @@
   // Tasks we need for every start and restart
   mainWindow.webContents.on("did-finish-load", () => core.prepare(cli.file));
 
-  // Task we need only on the first start
-  mainWindow.webContents.once("did-finish-load", () => {
-    updater
-      .isOutdated()
-      .then(updateUrl => {
-        if (updateUrl) mainEvent.emit("user:update-available", updateUrl);
-      })
-      .catch(e => log.debug(e)); // Ignore errors, since this is non-essential
-  });
-
   mainWindow.loadURL(
     url.format({
       pathname: path.join(__dirname, "html/index.html"),