mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-882: Use window.open("") to check for existing window, not window.open(null).
This commit is contained in:
@@ -146,13 +146,17 @@ GuacUI.openObject = function(id, parameters) {
|
||||
if (parameters)
|
||||
url += "&" + parameters;
|
||||
|
||||
// Attempt to focus existing window
|
||||
var current = window.open(null, id);
|
||||
// Attempt to pull existing window
|
||||
var current = window.open("", id);
|
||||
|
||||
// If window did not already exist, set up as
|
||||
// Guacamole client
|
||||
if (!current.GuacUI)
|
||||
window.open(url, id);
|
||||
if (!current || !current.GuacUI)
|
||||
current = window.open(url, id);
|
||||
|
||||
// Focus (possibly) existing window
|
||||
if (current)
|
||||
current.focus();
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user