From 3c2011323aaa338b6a0cec13b0c331e68a735ece Mon Sep 17 00:00:00 2001 From: Piotr Konieczny Date: Wed, 27 Nov 2024 16:01:18 +0100 Subject: [PATCH] Return async function from registerSW in dev mode --- src/client/dev/register.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/dev/register.ts b/src/client/dev/register.ts index ec782085..30e83ee7 100644 --- a/src/client/dev/register.ts +++ b/src/client/dev/register.ts @@ -3,5 +3,5 @@ import type { RegisterSWOptions } from '../type' export type { RegisterSWOptions } export function registerSW(_options: RegisterSWOptions = {}) { - return (_reloadPage = true) => {} + return async (_reloadPage = true) => {} }