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 --- manifest.json | 2 +- popup/popup.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 4a6f7a7..3b5e8a8 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Zen Internet", - "version": "2.2.7", + "version": "2.3.0", "description": "Make the internet feel native and elegant. Zen Internet is a browser extension that enhances your browsing experience by providing a clean and minimalistic interface with transparency and a focus on content. Customize the features in the addon popup.", "browser_specific_settings": { "gecko": { 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