GUAC-278: Migrate to GuacamoleSessionStorage which uses localStorage only if available.

This commit is contained in:
Michael Jumper
2014-04-17 16:28:08 -07:00
parent 1ccbbd8efe
commit 69da9bfc16
4 changed files with 138 additions and 104 deletions

View File

@@ -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