This commit is contained in:
freedakgmail
2025-11-22 23:49:24 +08:00
parent b83382b604
commit c033e46782
3580 changed files with 1745279 additions and 2428 deletions
+18
View File
@@ -0,0 +1,18 @@
"use client"
import { useEffect } from "react"
import { registerServiceWorker } from "@/lib/register-sw"
import { PWAInstaller } from "./pwa-installer"
export function PWAProvider({ children }: { children: React.ReactNode }) {
useEffect(() => {
registerServiceWorker()
}, [])
return (
<>
{children}
<PWAInstaller />
</>
)
}