Skip to content

Commit

Permalink
Versão 9.9.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipePS committed Sep 3, 2023
1 parent 4e77420 commit ca0d174
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion dist/chromium/updates.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='bolggfoncklhniejomgplkjcllmnonbh'>
<updatecheck codebase='https://github.com/FilipePS/Traduzir-paginas-web/releases/download/v9.9/TWP_9.9_Chromium.crx' version='9.9' status='ok' />
<updatecheck codebase='https://github.com/FilipePS/Traduzir-paginas-web/releases/download/v9.9.0.2/TWP_9.9.0.2_Chromium.crx' version='9.9.0.2' status='ok' />
</app>
</gupdate>
4 changes: 2 additions & 2 deletions dist/firefox/updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
Expand Down
64 changes: 32 additions & 32 deletions src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
2 changes: 1 addition & 1 deletion src/chrome_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/options/release-notes/en.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
</section>

<section>
<h4>9.9 - September 5, 2023</h4>
<h4>9.9 - September 3, 2023</h4>
<ul>
<li>Added
<ul>
Expand Down
2 changes: 1 addition & 1 deletion updates.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='bolggfoncklhniejomgplkjcllmnonbh'>
<updatecheck codebase='https://github.com/FilipePS/Traduzir-paginas-web/releases/download/v9.9/TWP_9.9_Chromium.crx' version='9.9' status='ok' />
<updatecheck codebase='https://github.com/FilipePS/Traduzir-paginas-web/releases/download/v9.9.0.2/TWP_9.9.0.2_Chromium.crx' version='9.9.0.2' status='ok' />
</app>
</gupdate>

0 comments on commit ca0d174

Please sign in to comment.