Shell B4ckd00r
Current Dir :
/
home
/
u789730693
/
domains
/
piorasplash.com
/
public_html
/
public
/
pwa
/
Home
Upload
Create Dir
Create File
Curl
Current File : /home/u789730693/domains/piorasplash.com/public_html/public/pwa/index.js
let installPrompt = null; const installButton = document.querySelector("#installPWA"); const installButtonSM = document.querySelector("#installPWAsm"); window.addEventListener("beforeinstallprompt", (event) => { event.preventDefault(); installPrompt = event; }); installButton?.addEventListener("click", async () => { if (!installPrompt) { return; } const result = await installPrompt.prompt(); installPrompt = null; }); installButtonSM?.addEventListener("click", async () => { if (!installPrompt) { return; } const result = await installPrompt.prompt(); installPrompt = null; });
v.01