No exception if noVNC_logo is undefined.

This commit is contained in:
Joel Martin 2011-03-25 09:01:53 -05:00
parent 8a377d7a95
commit 0b6292b8c0
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}