[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');
|
const { get } = require('request');
|
||||||
|
|
||||||
|
@ -8,12 +8,7 @@ module.exports = process.platform === 'linux' ? new (class HostLinux extends req
|
||||||
this.url = url;
|
this.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
quitAndInstall() {
|
checkForUpdates() {
|
||||||
app.relaunch();
|
|
||||||
app.quit();
|
|
||||||
}
|
|
||||||
|
|
||||||
async checkForUpdates() {
|
|
||||||
get(this.url, (e, r, b) => {
|
get(this.url, (e, r, b) => {
|
||||||
if (e) return this.emit('error');
|
if (e) return this.emit('error');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue