04/19 Update extension: add item prompt exist until user clicks the button, fix All relevant tab content
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user