Fix updater incorrectly showing an update is available
This commit is contained in:
parent
98a0717bba
commit
98a7a71b87
|
@ -63,7 +63,10 @@ export default new class {
|
|||
Logger.info('Updater', 'Checking for updates');
|
||||
|
||||
try {
|
||||
const response = await request('https://rawgit.com/JsSucks/BetterDiscordApp/master/package.json');
|
||||
const response = await request({
|
||||
uri: 'https://rawgit.com/JsSucks/BetterDiscordApp/master/package.json',
|
||||
json: true
|
||||
});
|
||||
|
||||
this.latestVersion = response.version;
|
||||
Events.emit('update-check-end');
|
||||
|
|
Loading…
Reference in New Issue