From a38f2a246cffeab3ba78a9f728303c430b9fae5d Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Wed, 26 May 2021 20:20:07 +0800 Subject: [PATCH] chore(plugin-pwa): fix typo (#167) --- .../plugin-pwa/src/client/composables/usePwaEvent.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@vuepress/plugin-pwa/src/client/composables/usePwaEvent.ts b/packages/@vuepress/plugin-pwa/src/client/composables/usePwaEvent.ts index e6397568eb..c2d1662604 100644 --- a/packages/@vuepress/plugin-pwa/src/client/composables/usePwaEvent.ts +++ b/packages/@vuepress/plugin-pwa/src/client/composables/usePwaEvent.ts @@ -24,9 +24,9 @@ export interface PwaEvent extends Emitter { export const pwaEventSymbol: InjectionKey = Symbol('pwaEvent') export const usePwaEvent = (): PwaEvent => { - const pawEvent = inject(pwaEventSymbol) - if (!pawEvent) { + const pwaEvent = inject(pwaEventSymbol) + if (!pwaEvent) { throw new Error('usePwaEvent() is called without provider.') } - return pawEvent + return pwaEvent }