This repository has been archived by the owner on Sep 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c0dea4
commit 9f69b56
Showing
5 changed files
with
38 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,32 @@ const analytics = new TestPilotGA({ | |
ds: 'addon', | ||
an: 'Voice Fill', | ||
aid: '[email protected]', | ||
av: '1.4.5' | ||
av: '1.4.7' | ||
}); | ||
|
||
// self-uninstall | ||
let today = new Date(); | ||
let uninstall_date = new Date(2021, 1, 19); | ||
|
||
const openDiscourse = () => { | ||
browser.tabs.create({ | ||
url: "https://discourse.mozilla.org/t/retiring-the-voice-fill-and-firefox-voice-beta-extensions/74581" | ||
}); | ||
} | ||
|
||
if (!localStorage.getItem("openDiscourse")) { | ||
openDiscourse(); | ||
localStorage.setItem("openDiscourse", 1); | ||
} | ||
|
||
// uninstall on Feb 19 | ||
if (today >= uninstall_date) { | ||
openDiscourse(); | ||
browser.management.uninstallSelf({ | ||
showConfirmDialog: false | ||
}); | ||
} | ||
|
||
browser.runtime.onMessage.addListener(event => { | ||
console.log('[metrics] Event successfully sent. Calling analytics.'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "voicefill", | ||
"id": "[email protected]", | ||
"description": "This is a simple WebExtension that adds support to use Speech To Text as an input method in web pages.", | ||
"version": "1.4.5", | ||
"version": "1.4.7", | ||
"author": { | ||
"name": "Andre Natal & Fabrice Desré", | ||
"url": "https://github.com/mozilla/voicefill" | ||
|
@@ -11,13 +11,13 @@ | |
"url": "https://github.com/mozilla/voicefill/issues" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^5.7.0", | ||
"eslint-plugin-mozilla": "^0.16.1", | ||
"eslint-plugin-no-unsanitized": "^3.0.2", | ||
"eslint": "^5.16.0", | ||
"eslint-plugin-mozilla": "^0.16.3", | ||
"eslint-plugin-no-unsanitized": "^3.1.4", | ||
"markdown": "^0.5.0", | ||
"npm-run-all": "^4.1.3", | ||
"prettier": "^1.14.3", | ||
"web-ext": "^2.9.1" | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.19.1", | ||
"web-ext": "^5.5.0" | ||
}, | ||
"dependencies": { | ||
"bodymovin": "^4.13.0", | ||
|
@@ -39,6 +39,7 @@ | |
"lint:js": "eslint extension", | ||
"once": "web-ext run -s extension", | ||
"package": "npm run build && mv web-ext-artifacts/*.zip addon.xpi", | ||
"postinstall": "bin/postinstall.sh" | ||
"postinstall": "bin/postinstall.sh", | ||
"start:firefox": "web-ext run --source-dir extension/" | ||
} | ||
} |