summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-11-28 14:02:21 -0500
committerPliable Pixels <pliablepixels@gmail.com>2016-11-28 14:02:21 -0500
commit010e28c69d86c48b33715fa67c972a4d4e49bee4 (patch)
treebf98ff6459f141daeffd1c2c4551c5c724cefd31 /www
parent9deaf8a580db11221de42e552a98d1ea9f766a66 (diff)
initial blog date was a promise - fixed to value
Diffstat (limited to 'www')
-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(
{