revert(ui): drop the Samsung Internet install notice

The banner is not wanted on the page. Remove ui/install-tip.js, its container in
index.html, the startup call, the .notice styles and the PRECACHE entry; keep the
documented fact (install from Chrome) in AGENTS.md/README instead.

VERSION 2026.11.24.7. Verified with a SamsungBrowser UA at 360px: no banner, no
.notice nodes, hero follows the header, installabilityErrors [].
This commit is contained in:
Bkk1234 committed 2026-11-24 15:23:54 +07:00
1 parent 2edbc39805
commit aead0bb6e5
8 files changed
+4 -146

No files matched your search

+1
View File
@@ -69,6 +69,7 @@ repo นี้ deploy เป็น **Compose application** บน Dokploy (serve
- **ติดตั้งได้**: `manifest.json` (`display: standalone`, `start_url`/`scope` = `/`, `id` = `/`, ไอคอน 192/512 + maskable, `screenshots` แนวตั้ง/แนวนอน, `shortcuts`) ลิงก์ใน `index.html`
- ต้องมีครบตามที่ Chrome/Samsung ตรวจ: HTTPS ที่ certificate ถูกต้อง · manifest ที่ parse ผ่าน (`Page.getAppManifest` → `errors: []`) · `Page.getInstallabilityErrors` → `[]` · service worker คุมหน้าอยู่ · ไอคอนเป็น PNG จริง (ไม่ใช่ SVG) และ **ขนาดจริงต้องตรงกับ `sizes` ที่ประกาศ** (48/72/96/144/192/512 + maskable 192/512)
- **Samsung Internet ใช้ `<meta name="mobile-web-app-capable" content="yes">` + `application-name`** ประกอบการตัดสิน — ถ้าลบ meta พวกนี้จะขึ้น “ไม่ผ่านข้อกำหนด” ทั้งที่ manifest ครบ
- การติดตั้งจาก Samsung Internet บน Android 14+ ยังถูก Play Protect บล็อก (บั๊กฝั่งเบราว์เซอร์) → ติดตั้งผ่าน Chrome · หน้าเว็บไม่แสดงแถบเตือนใด ๆ
- **ออฟไลน์ได้**: `sw.js` precache shell ไว้ครบ เปิดแบบไม่มีเน็ตยังเห็นรายการ (ข้อมูลจากสำเนา JSON/localStorage)
- **อัปเดตเอง**: `ui/pwa.js` ลงทะเบียนด้วย `updateViaCache: "none"` แล้ว `update()` ตอนเปิดหน้า / ทุก 30 นาที / กลับมาโฟกัสแท็บ / ต่อเน็ตใหม่ · `sw.js` ใช้ `skipWaiting()` + `clients.claim()` → `controllerchange` สั่ง reload หน้าเอง (ชะงักเฉพาะตอนกำลังพิมพ์ในฟอร์ม แล้วทำต่อเมื่อเลิกพิมพ์)
- cache เวอร์ชันเก่าถูกลบใน `activate` → ผู้ใช้ไม่ต้องล้างแคชเอง