Issue #85: window.openDatabase throws DOM Exception 18 on Android 3.1

The way were were detecting we were on an Android 3.0 device was not applicable for Android 3.1.  I've made and update so that any Android 3.X device will use our implementation of web sql databases instead of the built in one which thows a security error.
This commit is contained in:
macdonst 2011-05-16 23:12:01 +08:00
parent ab8cfe01d0
commit e99f75d59b

View File

@ -397,7 +397,7 @@ PhoneGap.addConstructor(function() {
navigator.openDatabase = window.openDatabase = DroidDB_openDatabase;
window.droiddb = new DroidDB();
}
if ((typeof window.openDatabase === "undefined") || (navigator.userAgent.indexOf("Android 3.0") != -1)) {
if ((typeof window.openDatabase === "undefined") || (navigator.userAgent.indexOf("Android 3.") != -1)) {
setupDroidDB();
} else {
window.openDatabase_orig = window.openDatabase;