04/19 Update extension: add item prompt exist until user clicks the button, fix All relevant tab content

This commit is contained in:
2026-04-19 20:06:57 -04:00
parent 7b26a51f9b
commit 0320e4f8eb
2 changed files with 410 additions and 233 deletions
+7
View File
@@ -76,6 +76,13 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
// ── Message handler ──────────────────────────────────────────────────────────
chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
// Content script requests opening the vault tab (from suggestion dropdown).
if (msg.type === "OPEN_VAULT") {
chrome.tabs.create({ url: "https://pwkeeper.ngodanguyen.tech/vault" });
sendResponse({ ok: true });
return false;
}
// No-op ping from popup — keeps the service worker alive while the browser
// is open so chrome.storage.session is not wiped between popup openings.
if (msg.type === "KEEPALIVE") {