Skip to content

Commit 06c1db6

Browse files
authored
fix: return async function from registerSW in dev mode (#799)
1 parent f51974c commit 06c1db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/dev/register.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import type { RegisterSWOptions } from '../type'
33
export type { RegisterSWOptions }
44

55
export function registerSW(_options: RegisterSWOptions = {}) {
6-
return (_reloadPage = true) => {}
6+
return async (_reloadPage = true) => {}
77
}

0 commit comments

Comments
 (0)