From 78880100617eac1b5ceb3a593aed48cbe12217d7 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Fri, 11 Apr 2025 17:28:36 +0800 Subject: [PATCH] fix asserthash --- src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index d3e91ec..cac19db 100644 --- a/src/client.ts +++ b/src/client.ts @@ -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; }