summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsameerasw <[email protected]>2025-06-03 00:11:24 +0530
committersameerasw <[email protected]>2025-06-03 00:11:24 +0530
commitab7f108c21b6b4786c537e64ebb9a7a8b8120fdc (patch)
tree87ac5528ea09545c6db7f2703ec1166151f443c0
parente014013d8de27c4a7bb5dcc66470041f69829d4a (diff)
last fetched fix and version updateHEADmaster
-rw-r--r--manifest.json2
-rw-r--r--popup/popup.js7
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()}`;
}
});