mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 07:01:38 +08:00
fix asserthash
This commit is contained in:
@@ -153,10 +153,10 @@ export class Pushy {
|
||||
return `${endpoint}/checkUpdate/${this.options.appKey}`;
|
||||
};
|
||||
static assertHash = (hash: string) => {
|
||||
if (!this.downloadedHash) {
|
||||
if (!Pushy.downloadedHash) {
|
||||
return;
|
||||
}
|
||||
if (hash !== this.downloadedHash) {
|
||||
if (hash !== Pushy.downloadedHash) {
|
||||
log(`use downloaded hash ${Pushy.downloadedHash} first`);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user