Skip to content

Commit

Permalink
fix: return async function from registerSW in dev mode (#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-cz authored Nov 29, 2024
1 parent f51974c commit 06c1db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/dev/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import type { RegisterSWOptions } from '../type'
export type { RegisterSWOptions }

export function registerSW(_options: RegisterSWOptions = {}) {
return (_reloadPage = true) => {}
return async (_reloadPage = true) => {}
}

0 comments on commit 06c1db6

Please sign in to comment.