Remove not neccecarly pwa sw configs and codes

This commit is contained in:
marzban-dev
2026-05-09 00:55:02 +03:30
parent b51fbbf2a5
commit e0714c65a6
8 changed files with 31 additions and 300 deletions
-19
View File
@@ -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,
};
};