Skip to content

Commit

Permalink
notes around try/catch on websqldatabase check.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jul 7, 2010
1 parent 8771324 commit 82a8dc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ window.Modernizr = (function(window,doc,undefined){
return !!window.postMessage;
};

// in chrome incognito mode, openDatabase is truthy, but using it
// will throw an exception: http://crbug.com/42380
tests[websqldatabase] = function() {
var result = !!window.openDatabase;
if (result){
Expand Down

0 comments on commit 82a8dc2

Please sign in to comment.