Skip to content

Commit

Permalink
note about miller device and local/session storage
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jan 27, 2010
1 parent d8947c9 commit 9722903
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modernizr-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

<h1>Modernizr</h1>

<ol>
<ol >
<script>
for (var prop in Modernizr) {
if (typeof Modernizr[prop] === 'function') continue;
Expand Down
3 changes: 3 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ window.Modernizr = (function(window,doc,undefined){
// tested in this method because otherwise Firefox will
// throw an error: https://bugzilla.mozilla.org/show_bug.cgi?id=365772
// if cookies are disabled

// FWIW miller device resolves to [object Storage] in all supporting browsers
// except for IE who does [object Object]
tests[localStorage] = function() {
return (localStorage in window) && window[localStorage] !== null;
};
Expand Down

0 comments on commit 9722903

Please sign in to comment.