Files
Idle-Fantasy-Save-Viewer/templates/_pwa_hint.html
T
elpatron 6ba4cf447f Make PWA install hint dismiss reliable across reloads.
Use delegated clicks, explicit hide state, and init before service worker registration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 11:34:46 +02:00

11 lines
514 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div id="pwa-install-hint" class="pwa-hint" hidden>
<div class="pwa-hint-text">
<strong data-i18n="pwa.hintTitle">Install as app</strong>
<p id="pwa-hint-body" data-i18n="pwa.hintBody">Add this viewer to your home screen for quick access.</p>
</div>
<div class="pwa-hint-actions">
<button type="button" id="pwa-install-btn" class="viewer-copy-btn" hidden data-i18n="pwa.install">Install</button>
<button type="button" class="pwa-hint-dismiss" aria-label="Dismiss">×</button>
</div>
</div>