diff --git a/build/webchatgpt-2.0.1-chrome.zip b/build/webchatgpt-2.0.2-chrome.zip similarity index 65% rename from build/webchatgpt-2.0.1-chrome.zip rename to build/webchatgpt-2.0.2-chrome.zip index 19c503f..ff3ea19 100644 Binary files a/build/webchatgpt-2.0.1-chrome.zip and b/build/webchatgpt-2.0.2-chrome.zip differ diff --git a/build/webchatgpt-2.0.1-firefox.zip b/build/webchatgpt-2.0.2-firefox.zip similarity index 64% rename from build/webchatgpt-2.0.1-firefox.zip rename to build/webchatgpt-2.0.2-firefox.zip index c41d1dc..e3401ce 100644 Binary files a/build/webchatgpt-2.0.1-firefox.zip and b/build/webchatgpt-2.0.2-firefox.zip differ diff --git a/src/manifest.json b/src/manifest.json index ea190fe..6b9803f 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -3,7 +3,7 @@ "name": "__MSG_appName__", "description": "__MSG_appDesc__", "default_locale": "en", - "version": "2.0.1", + "version": "2.0.2", "icons": { "16": "icons/icon16.png", "48": "icons/icon48.png", diff --git a/src/manifest.v2.json b/src/manifest.v2.json index 0e6c1d6..b05b5f3 100644 --- a/src/manifest.v2.json +++ b/src/manifest.v2.json @@ -3,7 +3,7 @@ "name": "__MSG_appName__", "description": "__MSG_appDesc__", "default_locale": "en", - "version": "2.0.1", + "version": "2.0.2", "icons": { "16": "icons/icon16.png", "48": "icons/icon48.png", diff --git a/src/util/promptManager.ts b/src/util/promptManager.ts index 82cdcb8..3a42327 100644 --- a/src/util/promptManager.ts +++ b/src/util/promptManager.ts @@ -2,6 +2,7 @@ import { SearchResult } from "src/content-scripts/api" import Browser from "webextension-polyfill" import { v4 as uuidv4 } from 'uuid' import { getCurrentLanguageName, getLocaleLanguage, getTranslation, localizationKeys } from "./localization" +import { getUserConfig } from "./userConfig" export const DEFAULT_PROMPT_KEY = 'default_prompt' export const CURRENT_PROMPT_UUID_KEY = 'promptUUID' @@ -56,8 +57,8 @@ const getDefaultEnglishPrompt = () => { } export const getCurrentPrompt = async () => { - const data = await Browser.storage.sync.get() - const currentPromptUuid = data[CURRENT_PROMPT_UUID_KEY] + const userConfig = await getUserConfig() + const currentPromptUuid = userConfig.promptUUID const savedPrompts = await getSavedPrompts() return savedPrompts.find((i: Prompt) => i.uuid === currentPromptUuid) }