Skip to content

Commit

Permalink
fix error when log level selected
Browse files Browse the repository at this point in the history
fix the error when log level selected by duplicate quote 
400
  • Loading branch information
isi07 authored Aug 13, 2024
1 parent 41b1735 commit 515fba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/blockly.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 515fba7

Please sign in to comment.