1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00

Fix error in Console.Log message when the program is run in compiled html mode.

This commit is contained in:
boxgaming 2023-09-29 09:25:28 -05:00
parent 5067502516
commit c7735bb6ff

View file

@ -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, ":");