mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-13 17:42:45 +08:00
feat: add option to always pin the floating window (#199)
This commit is contained in:
@@ -268,6 +268,7 @@ async function prepareForRightClickMenu() {
|
||||
}
|
||||
|
||||
async function prepareForStaticCard() {
|
||||
const userConfig = await getUserConfig()
|
||||
let siteRegex
|
||||
if (userConfig.useSiteRegexOnly) siteRegex = userConfig.siteRegex
|
||||
else
|
||||
@@ -296,10 +297,7 @@ async function prepareForStaticCard() {
|
||||
}
|
||||
}
|
||||
|
||||
let userConfig
|
||||
|
||||
async function run() {
|
||||
userConfig = await getUserConfig()
|
||||
await getPreferredLanguageKey().then((lang) => {
|
||||
changeLanguage(lang)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user