From 05e233bf1d6a1c5350a73a427485a49c1294a83a Mon Sep 17 00:00:00 2001 From: macdonst Date: Wed, 23 Nov 2011 03:39:27 +0800 Subject: [PATCH] Fix for issue #281 of phonegap/phonegap-android: Detect for localStorage if Java has disabled it --- framework/assets/js/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/assets/js/storage.js b/framework/assets/js/storage.js index cb741a92..47858c93 100755 --- a/framework/assets/js/storage.js +++ b/framework/assets/js/storage.js @@ -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"); }