mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-30 17:09:38 +00:00
Only show error stack if it is not empty
Parsing errors will not have a stack, and we don't want an empty box in those cases.
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
msg.appendChild(div);
|
||||
}
|
||||
|
||||
if (err && (err.stack !== undefined)) {
|
||||
if (err && err.stack) {
|
||||
div = document.createElement("div");
|
||||
div.className = 'noVNC_stack';
|
||||
div.appendChild(document.createTextNode(err.stack));
|
||||
|
||||
Reference in New Issue
Block a user