From 33bf4d05c97b250539dc02f42cc6b236ba3992c4 Mon Sep 17 00:00:00 2001 From: bad Date: Fri, 22 Apr 2022 18:45:52 +0200 Subject: [PATCH] Rename --- package.json | 4 ++-- src/background/background.ts | 4 ++-- src/manifest.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 923c80a..2ddefe4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/background/background.ts b/src/background/background.ts index 21304c8..9a48161 100644 --- a/src/background/background.ts +++ b/src/background/background.ts @@ -48,10 +48,10 @@ const getTabID = async (s: Runtime.MessageSender): Promise => { }; const isEnabledSession = async (tabID: number): Promise => - (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, { diff --git a/src/manifest.json b/src/manifest.json index 0d1e7ed..8b68e7a 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -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": {