No exception if noVNC_logo is undefined.
This commit is contained in:
parent
8a377d7a95
commit
0b6292b8c0
|
@ -358,7 +358,7 @@ updateState = function(state, statusMsg) {
|
||||||
(state === 'loaded')) {
|
(state === 'loaded')) {
|
||||||
// Show noVNC logo on load and when disconnected if
|
// Show noVNC logo on load and when disconnected if
|
||||||
// debug is off
|
// debug is off
|
||||||
if (noVNC_logo) {
|
if (typeof noVNC_logo !== 'undefined' && noVNC_logo) {
|
||||||
canvas.resize(noVNC_logo.width, noVNC_logo.height);
|
canvas.resize(noVNC_logo.width, noVNC_logo.height);
|
||||||
canvas.blitStringImage(noVNC_logo.data, 0, 0);
|
canvas.blitStringImage(noVNC_logo.data, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue