config.json editor 3

This commit is contained in:
Natsumi
2021-05-21 16:00:56 +12:00
parent 4bc89cfdfb
commit 2894dd81af

View File

@@ -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;