This repository was archived by the owner on Feb 26, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,30 @@ import { focusSearchResults } from "../intents/search/search.js";
1515import { copyImage } from "../intents/clipboard/clipboard.js" ;
1616import { registerHandler , sendMessage } from "../communicate.js" ;
1717
18+
19+ // self-uninstall
20+ let today = new Date ( ) ;
21+ let uninstall_date = new Date ( 2021 , 1 , 19 ) ;
22+
23+ const openDiscourse = ( ) => {
24+ browser . tabs . create ( {
25+ url : "https://discourse.mozilla.org/t/retiring-the-voice-fill-and-firefox-voice-beta-extensions/74581"
26+ } ) ;
27+ }
28+
29+ if ( ! localStorage . getItem ( "openDiscourse" ) ) {
30+ openDiscourse ( ) ;
31+ localStorage . setItem ( "openDiscourse" , 1 ) ;
32+ }
33+
34+ // uninstall on Feb 19
35+ if ( today >= uninstall_date ) {
36+ openDiscourse ( ) ;
37+ browser . management . uninstallSelf ( {
38+ showConfirmDialog : false
39+ } ) ;
40+ }
41+
1842// These are used for registering message handlers:
1943// eslint-disable-next-line no-unused-vars
2044import * as intentExamples from "./intentExamples.js" ;
You can’t perform that action at this time.
0 commit comments