mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
fix font config
This commit is contained in:
parent
0d455b86e1
commit
a484a73d9c
@ -8,6 +8,8 @@ let configPath = @.fs.homePath(".config/wechat_devtools/Default/Editor/User/sett
|
|||||||
let config = undefined;
|
let config = undefined;
|
||||||
if (@.fs.exists.file(configPath)) {
|
if (@.fs.exists.file(configPath)) {
|
||||||
config = JSON.parse(@.fs.readFile.sync(configPath, "utf8"));
|
config = JSON.parse(@.fs.readFile.sync(configPath, "utf8"));
|
||||||
|
} else {
|
||||||
|
config = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
config["editor.fontFamily"] = fontFamily;
|
config["editor.fontFamily"] = fontFamily;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user