fix:config

This commit is contained in:
手瓜一十雪
2024-05-08 18:45:45 +08:00
parent 4545d9285b
commit e5d3a8360c
4 changed files with 11 additions and 9 deletions

View File

@@ -150,7 +150,11 @@ async function onSettingWindowCreated(view) {
const isEmpty = (value) => value === void 0 || value === void 0 || value === "";
let ob11Config = await OB11ConfigWrapper.GetOB11Config();
const setOB11Config = (key, value) => {
console.log(key, value);
const configKey = key.split(".");
if (configKey.length === 2) {
ob11Config[configKey[1]] = value;
}
OB11ConfigWrapper.SetOB11Config(ob11Config);
};
const parser = new DOMParser();
const doc = parser.parseFromString(