Fix updater incorrectly showing an update is available

This commit is contained in:
Samuel Elliott 2018-07-07 22:04:41 +01:00
parent 98a0717bba
commit 98a7a71b87
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 4 additions and 1 deletions

View File

@ -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');