Remove not neccecarly pwa sw configs and codes
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
export const usePWA = () => {
|
||||
const isInstalledAsPWA = ref(false);
|
||||
|
||||
const checkPWAInstallation = () => {
|
||||
const isStandalone = window.matchMedia(
|
||||
"(display-mode: standalone)"
|
||||
).matches;
|
||||
const isIOSPWA = (window.navigator as any).standalone;
|
||||
isInstalledAsPWA.value = isStandalone || isIOSPWA;
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
checkPWAInstallation();
|
||||
});
|
||||
|
||||
return {
|
||||
isInstalledAsPWA,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user