04/19 Update extension: add item prompt exist until user clicks the button, fix All relevant tab content
This commit is contained in:
@@ -92,7 +92,9 @@ chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
|
||||
|
||||
// Content script detected credentials on form submit → store for save-prompt.
|
||||
if (msg.type === "SAVE_CREDENTIALS") {
|
||||
chrome.storage.session.set({ pending_save: msg.data });
|
||||
// Store in local storage so the prompt survives service worker restarts
|
||||
// and is guaranteed to be present when the user next opens the popup.
|
||||
chrome.storage.local.set({ pending_save: msg.data });
|
||||
sendResponse({ ok: true });
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user