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

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

No files matched your search

+1 -6
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