Commit d48e827f by libai

测试

parent 3d493e9b
Showing with 2 additions and 2 deletions
...@@ -15,7 +15,6 @@ const addBtn = document.querySelector('.add-button'); ...@@ -15,7 +15,6 @@ const addBtn = document.querySelector('.add-button');
addBtn.style.display = 'none'; addBtn.style.display = 'none';
window.addEventListener('beforeinstallprompt', (e) => { window.addEventListener('beforeinstallprompt', (e) => {
console.log(123)
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (/android/.test(ua)) { if (/android/.test(ua)) {
if(sessionStorage.type=="pwa")return; if(sessionStorage.type=="pwa")return;
......
...@@ -11,5 +11,5 @@ ...@@ -11,5 +11,5 @@
], ],
"name": "Footseen web", "name": "Footseen web",
"short_name": "Footseen", "short_name": "Footseen",
"start_url": "/mTest/index.html?type=pwa" "start_url": "/mobile/index.html?type=pwa"
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment