This commit is contained in:
bad 2022-04-22 18:45:52 +02:00
parent 872ca6d576
commit 33bf4d05c9
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{
"name": "lingo",
"name": "Flashlang",
"version": "1.0.0",
"description": "Lingo is a small browser extension to help you learn languages",
"description": "Flashlang is a small browser extension to help you learn languages",
"main": "webpack.config.js",
"dependencies": {
"@asmagin/google-translate-api": "^8.0.2",

View file

@ -48,10 +48,10 @@ const getTabID = async (s: Runtime.MessageSender): Promise<number> => {
};
const isEnabledSession = async (tabID: number): Promise<boolean> =>
(await browser.sessions.getTabValue(tabID, "lingoEnabled")) ?? false;
(await browser.sessions.getTabValue(tabID, "flashlang_enabled")) ?? false;
const setEnabledSession = async (tabID: number, value: boolean) =>
await browser.sessions.setTabValue(tabID, "lingoEnabled", value);
await browser.sessions.setTabValue(tabID, "flashlang_enabled", value);
const injectScript = async (tabID: number, enabled?: boolean) => {
await browser.tabs.executeScript(tabID, {

View file

@ -1,11 +1,11 @@
{
"browser_specific_settings": {
"gecko": {
"id": "addon@example.com",
"id": "flashlang@badat.dev",
"strict_min_version": "42.0"
}
},
"name": "Lingo",
"name": "Flashlang",
"manifest_version": 2,
"version": "0.1",
"browser_action": {