remove menu on PWA

This commit is contained in:
chris 2022-09-15 20:15:03 -04:00
parent e7cd4d2373
commit 5863356806

View File

@ -21,6 +21,18 @@ window.onload = function(){
} }
}; };
function isInstalled() {
// For iOS
if(window.navigator.standalone) return true
document.getElementById("nav").style.display = "none"
// For Android
if(window.matchMedia('(display-mode: standalone)').matches) return true
document.getElementById("nav").style.display = "none"
// If neither is true, it's not installed
return false
}
const startLife = 20; const startLife = 20;