Commit 0b6292b8 authored by Joel Martin's avatar Joel Martin

No exception if noVNC_logo is undefined.

parent 8a377d7a
......@@ -358,7 +358,7 @@ updateState = function(state, statusMsg) {
(state === 'loaded')) {
// Show noVNC logo on load and when disconnected if
// debug is off
if (noVNC_logo) {
if (typeof noVNC_logo !== 'undefined' && noVNC_logo) {
canvas.resize(noVNC_logo.width, noVNC_logo.height);
canvas.blitStringImage(noVNC_logo.data, 0, 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment