diff options
| -rw-r--r-- | manifest.json | 2 | ||||
| -rw-r--r-- | 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()}`;        }      });  | 
