[Updater > Host > Linux] Minor source cleanup
This commit is contained in:
parent
864df199ac
commit
3286a441ba
1 changed files with 2 additions and 7 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue