diff --git a/dist/chromium/updates.xml b/dist/chromium/updates.xml index bb918ba7..ecdcc12c 100644 --- a/dist/chromium/updates.xml +++ b/dist/chromium/updates.xml @@ -1,6 +1,6 @@ - + diff --git a/dist/firefox/updates.json b/dist/firefox/updates.json index 06623f3d..03fd484a 100644 --- a/dist/firefox/updates.json +++ b/dist/firefox/updates.json @@ -3,11 +3,11 @@ "{036a55b4-5e72-4d05-a06c-cba2dfcc134a}": { "updates": [ { - "version": "9.9", + "version": "9.9.0.2", "browser_specific_settings": { "gecko": { "strict_min_version": "64.0" } }, - "update_link": "https://github.com/FilipePS/Traduzir-paginas-web/releases/download/v9.9/TWP_9.9_Firefox.xpi" + "update_link": "https://github.com/FilipePS/Traduzir-paginas-web/releases/download/v9.9.0.2/TWP_9.9.0.2_Firefox.xpi" } ] } diff --git a/src/background/background.js b/src/background/background.js index a6ea2301..dc9c7251 100644 --- a/src/background/background.js +++ b/src/background/background.js @@ -155,38 +155,38 @@ chrome.runtime.onInstalled.addListener((details) => { details.reason == "update" && chrome.runtime.getManifest().version != details.previousVersion ) { - // twpConfig.onReady(async () => { - // if (platformInfo.isMobile.any) return; - // if (twpConfig.get("showReleaseNotes") !== "yes") return; - // let lastTimeShowingReleaseNotes = twpConfig.get( - // "lastTimeShowingReleaseNotes" - // ); - // let showReleaseNotes = false; - // if (lastTimeShowingReleaseNotes) { - // const date = new Date(); - // date.setDate(date.getDate() - 21); - // if (date.getTime() > lastTimeShowingReleaseNotes) { - // showReleaseNotes = true; - // lastTimeShowingReleaseNotes = Date.now(); - // twpConfig.set( - // "lastTimeShowingReleaseNotes", - // lastTimeShowingReleaseNotes - // ); - // } - // } else { - // showReleaseNotes = true; - // lastTimeShowingReleaseNotes = Date.now(); - // twpConfig.set( - // "lastTimeShowingReleaseNotes", - // lastTimeShowingReleaseNotes - // ); - // } - // if (showReleaseNotes) { - // tabsCreate( - // chrome.runtime.getURL("/options/options.html#release_notes") - // ); - // } - // }); + twpConfig.onReady(async () => { + if (platformInfo.isMobile.any) return; + if (twpConfig.get("showReleaseNotes") !== "yes") return; + let lastTimeShowingReleaseNotes = twpConfig.get( + "lastTimeShowingReleaseNotes" + ); + let showReleaseNotes = false; + if (lastTimeShowingReleaseNotes) { + const date = new Date(); + date.setDate(date.getDate() - 21); + if (date.getTime() > lastTimeShowingReleaseNotes) { + showReleaseNotes = true; + lastTimeShowingReleaseNotes = Date.now(); + twpConfig.set( + "lastTimeShowingReleaseNotes", + lastTimeShowingReleaseNotes + ); + } + } else { + showReleaseNotes = true; + lastTimeShowingReleaseNotes = Date.now(); + twpConfig.set( + "lastTimeShowingReleaseNotes", + lastTimeShowingReleaseNotes + ); + } + if (showReleaseNotes) { + tabsCreate( + chrome.runtime.getURL("/options/options.html#release_notes") + ); + } + }); twpConfig.onReady(async () => { translationCache.deleteTranslationCache(); }); diff --git a/src/chrome_manifest.json b/src/chrome_manifest.json index f7e4a8e5..49740906 100644 --- a/src/chrome_manifest.json +++ b/src/chrome_manifest.json @@ -3,7 +3,7 @@ "default_locale": "en", "name": "TWP - Translate Web Pages", "description": "__MSG_extensionDescription__", - "version": "9.9", + "version": "9.9.0.2", "homepage_url": "https://github.com/FilipePS/Traduzir-paginas-web", "update_url": "https://raw.githubusercontent.com/FilipePS/Traduzir-paginas-web/master/dist/chromium/updates.xml", "minimum_chrome_version": "70.0", diff --git a/src/manifest.json b/src/manifest.json index ed5dbcc0..ca2ac8f5 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -3,7 +3,7 @@ "default_locale": "en", "name": "TWP - Translate Web Pages", "description": "__MSG_extensionDescription__", - "version": "9.9", + "version": "9.9.0.2", "homepage_url": "https://github.com/FilipePS/Traduzir-paginas-web", "browser_specific_settings": { "gecko": { diff --git a/src/options/release-notes/en.html b/src/options/release-notes/en.html index 5c6faca6..e0e89faa 100644 --- a/src/options/release-notes/en.html +++ b/src/options/release-notes/en.html @@ -96,7 +96,7 @@
-

9.9 - September 5, 2023

+

9.9 - September 3, 2023