ErrorEvent.error isn't always set

It's not just a matter of the browser lacking support.
This commit is contained in:
Pierre Ossman 2017-03-02 14:22:15 +01:00
parent 13c558e3a0
commit 5da03103a3
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
msg.appendChild(div);
}
if ((err !== undefined) &&
if (err &&
(err.stack !== undefined)) {
div = document.createElement("div");
div.className = 'noVNC_stack';