From 2894dd81af86fdf1f403da24334ff866137f30bb Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 21 May 2021 16:00:56 +1200 Subject: [PATCH] config.json editor 3 --- html/src/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/src/app.js b/html/src/app.js index bed37f00..fec4913c 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -11189,8 +11189,12 @@ speechSynthesis.getVoices(); delete this.VRChatConfigFile.screenshot_res_width; } for (var item in this.VRChatConfigFile) { - if (!this.VRChatConfigFile[item]) { + if (this.VRChatConfigFile[item] === '') { delete this.VRChatConfigFile[item]; + } else if ((typeof this.VRChatConfigFile[item] === 'boolean') && (this.VRChatConfigFile[item] === false)) { + delete this.VRChatConfigFile[item]; + } else if ((typeof this.VRChatConfigFile[item] === 'string') && (!isNaN(this.VRChatConfigFile[item]))) { + this.VRChatConfigFile[item] = parseInt(this.VRChatConfigFile[item]); } } this.VRChatConfigDialog.visible = false;