Commit 427e5a20 by libai

测试

parent 6002610d
Showing with 0 additions and 4 deletions
......@@ -15,7 +15,6 @@ const addBtn = document.querySelector('.add-button');
addBtn.style.display = 'none';
window.addEventListener('beforeinstallprompt', (e) => {
setTimeout(function() {
// Prevent Chrome 67 and earlier from automatically showing the prompt
e.preventDefault();
// Stash the event so it can be triggered later.
......@@ -38,6 +37,4 @@ window.addEventListener('beforeinstallprompt', (e) => {
deferredPrompt = null;
});
});
}, 5000);
});
\ 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