fix(ui): repair PWA install, credit footer, and boursecu copy
Make install guide and BasicButton clicks reliable, align montzar credit bar, remove calculator quick action, and use مس in about-software default text. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -96,6 +96,11 @@ export function initPwaInstallPromptListener() {
|
||||
if (installListenerInitialized || typeof window === 'undefined') return
|
||||
installListenerInitialized = true
|
||||
|
||||
window.addEventListener('beforeinstallprompt', (e) => {
|
||||
e.preventDefault()
|
||||
deferredInstallPrompt = e as BeforeInstallPromptEvent
|
||||
})
|
||||
|
||||
window.addEventListener(PWA_MANIFEST_READY_EVENT, (event) => {
|
||||
const installEvent = (event as CustomEvent<{ installEvent?: Event | null }>).detail?.installEvent
|
||||
|
||||
@@ -103,6 +108,10 @@ export function initPwaInstallPromptListener() {
|
||||
deferredInstallPrompt = installEvent as BeforeInstallPromptEvent
|
||||
}
|
||||
})
|
||||
|
||||
window.addEventListener('appinstalled', () => {
|
||||
deferredInstallPrompt = null
|
||||
})
|
||||
}
|
||||
|
||||
export async function triggerNativePwaInstall() {
|
||||
|
||||
Reference in New Issue
Block a user