make phone calls

This commit is contained in:
m5r
2022-06-11 19:29:58 +02:00
parent dbe209c7fc
commit f1702180b7
9 changed files with 49 additions and 24 deletions

View File

@ -4,6 +4,10 @@ import { IoDownloadOutline } from "react-icons/io5";
export default function ServiceWorkerUpdateNotifier() {
const [hasUpdate, setHasUpdate] = useState(false);
useEffect(() => {
if (!("serviceWorker" in navigator)) {
return;
}
(async () => {
const registration = await navigator.serviceWorker.getRegistration();
if (!registration) {