Skip to content

Commit a38f2a2

Browse files
authored
chore(plugin-pwa): fix typo (#167)
1 parent 8de5f0f commit a38f2a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: packages/@vuepress/plugin-pwa/src/client/composables/usePwaEvent.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export interface PwaEvent extends Emitter {
2424
export const pwaEventSymbol: InjectionKey<PwaEvent> = Symbol('pwaEvent')
2525

2626
export const usePwaEvent = (): PwaEvent => {
27-
const pawEvent = inject(pwaEventSymbol)
28-
if (!pawEvent) {
27+
const pwaEvent = inject(pwaEventSymbol)
28+
if (!pwaEvent) {
2929
throw new Error('usePwaEvent() is called without provider.')
3030
}
31-
return pawEvent
31+
return pwaEvent
3232
}

0 commit comments

Comments
 (0)