From 3286a441ba3d4b9c96a827526df8e1194260e5d4 Mon Sep 17 00:00:00 2001 From: Oj Date: Fri, 22 Apr 2022 18:09:31 +0100 Subject: [PATCH] [Updater > Host > Linux] Minor source cleanup --- src/updater/hostUpdater.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/updater/hostUpdater.js b/src/updater/hostUpdater.js index 1c2e154..66acb0e 100644 --- a/src/updater/hostUpdater.js +++ b/src/updater/hostUpdater.js @@ -1,4 +1,4 @@ -const { app, autoUpdater } = require('electron'); +const { autoUpdater } = require('electron'); const { get } = require('request'); @@ -8,12 +8,7 @@ module.exports = process.platform === 'linux' ? new (class HostLinux extends req this.url = url; } - quitAndInstall() { - app.relaunch(); - app.quit(); - } - - async checkForUpdates() { + checkForUpdates() { get(this.url, (e, r, b) => { if (e) return this.emit('error');