GUAC-278: Migrate to GuacamoleSessionStorage which uses localStorage only if available.
This commit is contained in:
1 parent
1ccbbd8efe
commit
69da9bfc16
4 files changed
+138
-104
No files matched your search
@@ -26,11 +26,6 @@
|
||||
*/
|
||||
var GuacUI = GuacUI || {};
|
||||
|
||||
/**
|
||||
* Current session state, including settings.
|
||||
*/
|
||||
GuacUI.sessionState = new GuacamoleSessionState();
|
||||
|
||||
/**
|
||||
* Creates a new element having the given tagname and CSS class.
|
||||
*/
|
||||
@@ -186,7 +181,7 @@ GuacUI.Audio = new (function() {
|
||||
this.supported = [];
|
||||
|
||||
// If sound disabled, we're done now.
|
||||
if (GuacUI.sessionState.getProperty("disable-sound", false))
|
||||
if (GuacamoleSessionStorage.getItem("disable-sound", false))
|
||||
return;
|
||||
|
||||
// Build array of supported audio formats
|
||||
|
||||
Reference in new issue
Block a user