From 0b6292b8c09f114a9f67f965311e78004cc9e040 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Fri, 25 Mar 2011 09:01:53 -0500 Subject: [PATCH] No exception if noVNC_logo is undefined. --- include/rfb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rfb.js b/include/rfb.js index b265a1fe..9fb58d95 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -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); }