Skip to content

Commit

Permalink
CheckInstalled bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
affenull2345 committed Aug 15, 2021
1 parent 2add402 commit 4c6410d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/appstore/bhackers-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ class BHackersV2App extends StoreApp {
return this._data.description;
}
loadManifest() {
if(this._dataVersion < 3) return Promise.resolve(this._data.download);
if(this._dataVersion < 3) return Promise.resolve({
version: this._data.download.version
});

if(!this.manifestPromise){
this.manifestPromise = request(
Expand Down Expand Up @@ -175,7 +177,7 @@ class BHackersV2App extends StoreApp {
}];
}
checkUpdatable(version) {
return this.loadManifest.then(mf => Promise.resolve(
return this.loadManifest().then(mf => Promise.resolve(
(version && mf.version) ?
(compareVersions(mf.version, version) > 0) : false
));
Expand Down

0 comments on commit 4c6410d

Please sign in to comment.