Skip to content

Commit

Permalink
extra check on localStorage. should address Modernizr#43
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jan 27, 2010
1 parent 7d7b10c commit 036bb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modernizr.js
Expand Up @@ -573,7 +573,7 @@ window.Modernizr = (function(window,doc,undefined){
};

tests[sessionStorage] = function() {
return sessionStorage in window;
return (sessionStorage in window) && window[localStorage] !== null;
};

tests[webWorkers] = function () {
Expand Down

0 comments on commit 036bb65

Please sign in to comment.