refactor: address code-review findings for install detection and diag log
- pwa-install.ts: permanent 'ponomar-ever-installed' marker keeps install button hidden on Firefox/Safari after appinstalled clears the offer flag; isPwaInstalled moved to core for reuse - diag-log: self-heal corrupted storage, show MM-DD in tail - settings: refresh diag panel after clear-cache; uniform completion style - data-cache.has: plain count(key); document HTML-as-failure intent
This commit is contained in:
1 parent
193038a671
commit
142b95d226
6 files changed
+90
-33
No files matched your search
@@ -102,7 +102,7 @@ export class DataCache {
|
||||
const db = await getDB();
|
||||
return await new Promise<boolean | null>((resolve) => {
|
||||
const tx = db.transaction(STORE_NAME, 'readonly');
|
||||
const request = tx.objectStore(STORE_NAME).count(IDBKeyRange.only(key));
|
||||
const request = tx.objectStore(STORE_NAME).count(key);
|
||||
request.onsuccess = () => resolve(request.result > 0);
|
||||
request.onerror = () => resolve(null);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user