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:
2026-09-03 13:53:10 -04:00
co-authored by Cursor
parent 9356a2ab5e
commit 5920866a95
9 changed files with 85 additions and 28 deletions
+9
View File
@@ -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() {