Selaa lähdekoodia

No exception if noVNC_logo is undefined.

Joel Martin 14 vuotta sitten
vanhempi
commit
0b6292b8c0
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      include/rfb.js

+ 1 - 1
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);
                 }