We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8de5f0f commit a38f2a2Copy full SHA for a38f2a2
packages/@vuepress/plugin-pwa/src/client/composables/usePwaEvent.ts
@@ -24,9 +24,9 @@ export interface PwaEvent extends Emitter {
24
export const pwaEventSymbol: InjectionKey<PwaEvent> = Symbol('pwaEvent')
25
26
export const usePwaEvent = (): PwaEvent => {
27
- const pawEvent = inject(pwaEventSymbol)
28
- if (!pawEvent) {
+ const pwaEvent = inject(pwaEventSymbol)
+ if (!pwaEvent) {
29
throw new Error('usePwaEvent() is called without provider.')
30
}
31
- return pawEvent
+ return pwaEvent
32
0 commit comments