From c58659c7f9d46c3ffa3afa0fa2bbbd4f9b46f75a Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 31 Jan 2022 02:17:04 +0800 Subject: [PATCH] bug fix --- src/globals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/globals.js b/src/globals.js index 9b06848b5..3c3013a8f 100644 --- a/src/globals.js +++ b/src/globals.js @@ -269,7 +269,7 @@ function _getByName(name, arg) { case 'image_quality': return curConn.getImageQuality(); case 'translate': - const arg = JSON.parse(arg); + arg = JSON.parse(arg); return translate(arg.locale, arg.text); case 'peer_option': return curConn.getOption(arg);