Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix edge case in sessionStorage detection for FireFox. If it is disab…

…led using about:config, typeof will be object, but the value will be null.
  • Loading branch information...
commit 3bc2798e726221cfcadfa1bff13222073aa76abb 1 parent 36c8fc2
jakr jakr authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/javascript/LeftAndMain.js
4 admin/javascript/LeftAndMain.js
View
@@ -441,7 +441,7 @@ jQuery.noConflict();
* Requires HTML5 sessionStorage support.
*/
saveTabState: function() {
- if(typeof(window.sessionStorage)=="undefined") return;
+ if(typeof(window.sessionStorage)=="undefined" || window.sessionStorage == null) return;
var selectedTabs = [], url = this._tabStateUrl();
this.find('.cms-tabset,.ss-tabset').each(function(i, el) {
@@ -459,7 +459,7 @@ jQuery.noConflict();
* Requires HTML5 sessionStorage support.
*/
restoreTabState: function() {
- if(typeof(window.sessionStorage)=="undefined") return;
+ if(typeof(window.sessionStorage)=="undefined" || window.sessionStorage == null) return;
var self = this, url = this._tabStateUrl(),
data = window.sessionStorage.getItem('tabs-' + url),
Please sign in to comment.
Something went wrong with that request. Please try again.