Skip to content

Commit

Permalink
OK - Firefox 3.08 does support sessionStorage, but getItem returns an…
Browse files Browse the repository at this point in the history
… object instead of the value.
  • Loading branch information
quirkey committed Feb 25, 2010
1 parent 8204739 commit cfcc03d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plugins/sammy.storage.js
Expand Up @@ -309,7 +309,9 @@
return window.sessionStorage.setItem(this._key(key), value);
},
get: function(key) {
return window.sessionStorage.getItem(this._key(key));
var value = window.sessionStorage.getItem(this._key(key));
if (value && typeof value.value != "undefined") { value = value.value }
return value;
},
clear: function(key) {
window.sessionStorage.removeItem(this._key(key));;
Expand Down

0 comments on commit cfcc03d

Please sign in to comment.