fix font config

This commit is contained in:
Minun 2020-04-09 13:15:09 +08:00
parent 0d455b86e1
commit a484a73d9c

View File

@ -8,6 +8,8 @@ let configPath = @.fs.homePath(".config/wechat_devtools/Default/Editor/User/sett
let config = undefined;
if (@.fs.exists.file(configPath)) {
config = JSON.parse(@.fs.readFile.sync(configPath, "utf8"));
} else {
config = {};
}
config["editor.fontFamily"] = fontFamily;