1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 07:01:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix asserthash

This commit is contained in:
sunnylqm
2025-04-11 17:28:36 +08:00
parent a9c360620f
commit 7888010061

View File

@@ -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;
}