mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUAC-882: Tolerate lack of access to window.opener.
This commit is contained in:
@@ -23,7 +23,18 @@
|
|||||||
/**
|
/**
|
||||||
* Global storage for Guacamole pages.
|
* Global storage for Guacamole pages.
|
||||||
*/
|
*/
|
||||||
GuacamoleSessionStorage = (opener && opener.GuacamoleSessionStorage) || new (function() {
|
GuacamoleSessionStorage = (function() {
|
||||||
|
|
||||||
|
// Retrieve storage from owner of window, if possible
|
||||||
|
var opener_storage = null;
|
||||||
|
try {
|
||||||
|
opener_storage = opener && opener.GuacamoleSessionStorage;
|
||||||
|
}
|
||||||
|
catch (e) {}
|
||||||
|
|
||||||
|
return opener_storage;
|
||||||
|
|
||||||
|
})() || new (function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The contents of storage, as a JSON string containing name/value pairs as
|
* The contents of storage, as a JSON string containing name/value pairs as
|
||||||
|
Reference in New Issue
Block a user