Skip to content

Commit

Permalink
indexedDB test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jun 14, 2010
1 parent 1356c9c commit 6de844c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ window.Modernizr = (function(window,doc,undefined){
historymanagement = 'historymanagement',
draganddrop = 'draganddrop',
websqldatabase = 'websqldatabase',
indexedDB = 'indexedDB',
websocket = 'websocket',
smile = ':)',

Expand Down Expand Up @@ -313,6 +314,10 @@ window.Modernizr = (function(window,doc,undefined){
}
return result;
};

tests[indexedDB] = function(){
return !!window[indexedDB];
};

// documentMode logic from YUI to filter out IE8 Compat Mode
// which false positives.
Expand Down

0 comments on commit 6de844c

Please sign in to comment.