From de697469376247dc58871d769c4e46c45d62a3c8 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Thu, 18 Jul 2024 10:22:52 +0800 Subject: [PATCH] fix typo --- src/client.ts | 2 +- src/type.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index 5a04256..5d72ea4 100644 --- a/src/client.ts +++ b/src/client.ts @@ -399,7 +399,7 @@ export class Pushy { target: 'update.apk', hash: progressKey, }).catch(() => { - this.report({ type: 'errowDownloadAndInstallApk' }); + this.report({ type: 'errorDownloadAndInstallApk' }); }); if (this.progressHandlers[progressKey]) { this.progressHandlers[progressKey].remove(); diff --git a/src/type.ts b/src/type.ts index f376c1f..ecd7510 100644 --- a/src/type.ts +++ b/src/type.ts @@ -33,7 +33,7 @@ export type EventType = | 'downloadingApk' | 'rejectStoragePermission' | 'errorStoragePermission' - | 'errowDownloadAndInstallApk'; + | 'errorDownloadAndInstallApk'; export interface EventData { currentVersion: string;