mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
removeChild(), not removeNode()
This commit is contained in:
@@ -482,7 +482,7 @@ function GuacamoleClient(display, tunnelURL) {
|
|||||||
|
|
||||||
// If already present, remove
|
// If already present, remove
|
||||||
if (layers[i].parentNode === display)
|
if (layers[i].parentNode === display)
|
||||||
display.removeNode(layers[i]);
|
display.removeChild(layers[i]);
|
||||||
|
|
||||||
// Add to end
|
// Add to end
|
||||||
display.appendChild(layers[i]);
|
display.appendChild(layers[i]);
|
||||||
@@ -492,7 +492,7 @@ function GuacamoleClient(display, tunnelURL) {
|
|||||||
// Add cursor layer last
|
// Add cursor layer last
|
||||||
if (cursor != null) {
|
if (cursor != null) {
|
||||||
if (cursor.parentNode === display)
|
if (cursor.parentNode === display)
|
||||||
display.removeNode(cursor);
|
display.removeChild(cursor);
|
||||||
display.appendChild(cursor);
|
display.appendChild(cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user