remove menu on PWA
This commit is contained in:
parent
e7cd4d2373
commit
5863356806
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user