From ab7f108c21b6b4786c537e64ebb9a7a8b8120fdc Mon Sep 17 00:00:00 2001 From: sameerasw Date: Tue, 3 Jun 2025 00:11:24 +0530 Subject: last fetched fix and version update --- popup/popup.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'popup') diff --git a/popup/popup.js b/popup/popup.js index 3dccd47..4515856 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -1004,10 +1004,11 @@ new (class ExtensionPopup { displayLastFetchedTime() { if (logging) console.log("displayLastFetchedTime called"); - browser.storage.local.get("lastFetchedTime").then((result) => { - if (result.lastFetchedTime) { + browser.storage.local.get(this.BROWSER_STORAGE_KEY).then((result) => { + const settings = result[this.BROWSER_STORAGE_KEY] || {}; + if (settings.lastFetchedTime) { this.lastFetchedTime.textContent = `Last fetched: ${new Date( - result.lastFetchedTime + settings.lastFetchedTime ).toLocaleString()}`; } }); -- cgit v1.2.3