Fix: refresh web push pref on standalone change

This commit is contained in:
nimbleghost 2023-06-26 08:53:03 +02:00
parent 5627097a6c
commit 175ab5ea76
3 changed files with 33 additions and 26 deletions

View file

@ -263,16 +263,3 @@ export const urlB64ToUint8Array = (base64String) => {
}
return outputArray;
};
export const isLaunchedPWA = () => {
if (window.matchMedia("(display-mode: standalone)").matches) {
return true;
}
// iOS
if (window.navigator.standalone === true) {
return true;
}
return false;
};