Skip to content

Commit

Permalink
Merge pull request #401 from isi07/fix#400
Browse files Browse the repository at this point in the history
fix error when log level selected
  • Loading branch information
GermanBluefox authored Aug 17, 2024
2 parents d544274 + 515fba7 commit eb6a140
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 eb6a140

Please sign in to comment.