mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
Attempt to fix the HTML 5 storage
This commit is contained in:
parent
9c1a1207bb
commit
a179fbd095
@ -80,10 +80,10 @@ var dbSetup = function(name, version, display_name, size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
PhoneGap.addConstructor(function() {
|
PhoneGap.addConstructor(function() {
|
||||||
if (typeof navigator.openDatabase == "undefined")
|
if (typeof window.openDatabase == "undefined")
|
||||||
{
|
{
|
||||||
navigator.openDatabase = window.openDatabase = dbSetup;
|
navigator.openDatabase = window.openDatabase = dbSetup;
|
||||||
window.droiddb = new DroidDB();
|
window.droiddb = new DroidDB();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user