From 515fba76ff466025ae9c003847c7d7c47d326899 Mon Sep 17 00:00:00 2001 From: isi07 <65848350+isi07@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:29:50 +0200 Subject: [PATCH] fix error when log level selected fix the error when log level selected by duplicate quote 400 --- admin/blockly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/blockly.js b/admin/blockly.js index 3d1870c..1238d54 100644 --- a/admin/blockly.js +++ b/admin/blockly.js @@ -287,7 +287,7 @@ Blockly.JavaScript['pushover'] = function(block) { let logText = ''; if (logLevel) { - logText = `console.${logLevel}('pushover${dropdown_instance}: ${message}');\n`; + logText = `console.${logLevel}('pushover${dropdown_instance}: ' + ${message});\n`; } return `sendTo('pushover${dropdown_instance}', 'send', ${text});\n` + logText; @@ -478,7 +478,7 @@ Blockly.JavaScript['glances'] = function(block) { let logText = ''; if (logLevel) { - logText = `console.${logLevel}('pushover${dropdown_instance} (glances): ${message}');\n`; + logText = `console.${logLevel}('pushover${dropdown_instance} (glances): ' + ${message});\n`; } return `sendTo('pushover${dropdown_instance}', 'glances', ${text});\n` + logText;