summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/js/DataModel.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index a0e0bce8..b0754ef9 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -394,7 +394,7 @@ angular.module('zmApp.controllers')
setLatestBlogPostChecked: function(val)
{
- //console.log (">>>>>>>>>>>> Setting blog date: " + val);
+ console.log (">>>>>>>>>>>> Setting blog date: " + val);
latestBlogPostChecked = val;
localforage.setItem("latestBlogPostChecked", latestBlogPostChecked);
},
@@ -572,7 +572,10 @@ angular.module('zmApp.controllers')
log("ZMData init: checking for stored variables & setting up log file");
- latestBlogPostChecked = localforage.getItem("latestBlogPostChecked") || null;
+ localforage.getItem("latestBlogPostChecked")
+ .then (function (val) {latestBlogPostChecked = val;},
+ function (err) {latestBlogPostChecked = null;});
+
$ionicLoading.show(
{