97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
return;
}
browser.storage.local.get("gc_options").then(initGrammarChecker, showError);
browser.storage.local.get("ui_options").then(initUIOptions, showError);
}
init();
/*
Ports from content-scripts
*/
let dConnx = new Map();
|
>
>
>
>
>
>
>
>
>
>
>
|
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
return;
}
browser.storage.local.get("gc_options").then(initGrammarChecker, showError);
browser.storage.local.get("ui_options").then(initUIOptions, showError);
}
init();
browser.runtime.onInstalled.addListener(function (oDetails) {
// launched at installation or update
// https://developer.mozilla.org/fr/Add-ons/WebExtensions/API/runtime/onInstalled
if (oDetails.reason == "update" || oDetails.reason == "installed") {
// todo
//browser.tabs.create({url: "http://grammalecte.net"});
}
});
/*
Ports from content-scripts
*/
let dConnx = new Map();
|