Fix: refresh web push pref on standalone change
This commit is contained in:
parent
5627097a6c
commit
175ab5ea76
3 changed files with 33 additions and 26 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue