diff options
author | sameerasw <[email protected]> | 2025-06-03 00:11:24 +0530 |
---|---|---|
committer | sameerasw <[email protected]> | 2025-06-03 00:11:24 +0530 |
commit | ab7f108c21b6b4786c537e64ebb9a7a8b8120fdc (patch) | |
tree | 87ac5528ea09545c6db7f2703ec1166151f443c0 /popup | |
parent | e014013d8de27c4a7bb5dcc66470041f69829d4a (diff) |
Diffstat (limited to 'popup')
-rw-r--r-- | popup/popup.js | 7 |
1 files changed, 4 insertions, 3 deletions
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()}`; } }); |