mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Fix for issue #281 of phonegap/phonegap-android: Detect for localStorage if Java has disabled it
This commit is contained in:
parent
36caaf366f
commit
63ae953432
@ -431,7 +431,7 @@ PhoneGap.addConstructor(function() {
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof window.localStorage === "undefined") {
|
||||
if ((typeof window.localStorage == "undefined") || (window.localStorage == null)) {
|
||||
navigator.localStorage = window.localStorage = new CupcakeLocalStorage();
|
||||
PhoneGap.waitForInitialization("cupcakeStorage");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user