mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-11 15:37:41 +00:00
GUAC-278: Migrate to GuacamoleSessionStorage which uses localStorage only if available.
This commit is contained in:
@@ -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