Skip to content

Commit

Permalink
more docs around the safari prompt for websql
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Oct 5, 2010
1 parent 4561dbb commit 0d15332
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,13 @@ window.Modernizr = (function(window,doc,undefined){
return !!window.postMessage;
};

// in chrome incognito mode, openDatabase is truthy, but using it
// In chrome incognito mode, openDatabase is truthy, but using it
// will throw an exception: http://crbug.com/42380
// we create a dummy database. there is no way to delete it afterwards. sorry.

// Meanwhile, a safari user can request to be prompted on any database creation.
// If they do, any page with Modernizr will give them a prompt.
// http://github.com/Modernizr/Modernizr/issues/closed#issue/113
tests['websqldatabase'] = function() {
var result = !!window.openDatabase;
if (result){
Expand Down

0 comments on commit 0d15332

Please sign in to comment.