Skip to content

Commit 7888010

Browse files
committed
fix asserthash
1 parent a9c3606 commit 7888010

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ export class Pushy {
153153
return `${endpoint}/checkUpdate/${this.options.appKey}`;
154154
};
155155
static assertHash = (hash: string) => {
156-
if (!this.downloadedHash) {
156+
if (!Pushy.downloadedHash) {
157157
return;
158158
}
159-
if (hash !== this.downloadedHash) {
159+
if (hash !== Pushy.downloadedHash) {
160160
log(`use downloaded hash ${Pushy.downloadedHash} first`);
161161
return;
162162
}

0 commit comments

Comments
 (0)