Skip to content

Commit

Permalink
Fix error in Console.Log message when the program is run in compiled …
Browse files Browse the repository at this point in the history
…html mode.
  • Loading branch information
boxgaming committed Sep 29, 2023
1 parent 5067502 commit c7735bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/web/console.bas
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ Sub Log (msg As String, msgType As String)

$If Javascript Then
var t = document.querySelector("#warning-container table");
var errorLine = await getErrorLine(new Error(), 1);
if (!t || appMode != "ide") {
console.log(msgType + ":" + errorLine + ":" + msg);
console.log(msgType + ":" + msg);
return;
}
var errorLine = await getErrorLine(new Error(), 1);
var tr = document.createElement("tr");
addWarningCell(tr, msgType);
addWarningCell(tr, ":");
Expand Down

0 comments on commit c7735bb

Please sign in to comment.