feat: add option to always pin the floating window (#199)

This commit is contained in:
josc146
2023-04-12 22:30:37 +08:00
parent a5a57a09a8
commit 43fde4b709
7 changed files with 27 additions and 10 deletions
+1 -3
View File
@@ -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)
})