mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Fixed error when layers are missing
This commit is contained in:
@@ -480,8 +480,10 @@ function GuacamoleClient(display, tunnelURL) {
|
||||
display.innerHTML = "";
|
||||
|
||||
// Add existing layers in order
|
||||
for (var i=0; i<layers.length; i++)
|
||||
display.appendChild(layers[i]);
|
||||
for (var i=0; i<layers.length; i++) {
|
||||
if (layers[i])
|
||||
display.appendChild(layers[i]);
|
||||
}
|
||||
|
||||
// Add cursor layer last
|
||||
if (cursor != null)
|
||||
|
Reference in New Issue
Block a user