Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more clarity around web sql database's need to create a dummy db

  • Loading branch information...
commit 0178be01bed4093cedda1f7c099b66ce475de131 1 parent 6bf64be
@paulirish paulirish authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 modernizr.js
View
5 modernizr.js
@@ -307,12 +307,13 @@ window.Modernizr = (function(window,doc,undefined){
// 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.
tests[websqldatabase] = function() {
var result = !!window.openDatabase;
if (result){
try {
- result = !!openDatabase("testdb", "1.0", "html5 test db", 200000);
- } catch(err) {
+ result = !!openDatabase( mod + "testdb", "1.0", mod + "testdb", 2e4);
+ } catch(e) {
result = false;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.