summarylogtreecommitdiffstats
path: root/disable-update-check.patch
blob: 15dfd0d3b3a3964dfeef4c4c4a3593725d3c3e29 (plain)
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
diff -ura package.orig/src/main.js package.new/src/main.js
--- package.orig/src/main.js	2019-10-30 00:09:52.833991579 +0100
+++ package.new/src/main.js	2019-10-30 00:13:11.936926036 +0100
@@ -393,22 +393,6 @@
       });
   });
 
-  // Task we need only on the first start
-  mainWindow.webContents.once("did-finish-load", () => {
-    utils
-      .getUpdateAvailable()
-      .then(() => {
-        utils.log.info(
-          "This is not the latest version of the UBports Installer! Please update: https://devices.ubuntu-touch.io/installer/" +
-            (global.packageInfo.package ? global.packageInfo.package : "")
-        );
-        mainWindow.webContents.send("user:update-available");
-      })
-      .catch(() => {
-        utils.log.debug("This is the latest version.");
-      });
-  });
-
   mainWindow.loadURL(
     url.format({
       pathname: path.join(__dirname, "html/index.pug"),