From edc8404f49bada3f8105f129afba887c39aaa207 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Tue, 10 Nov 2015 14:45:12 -0500 Subject: #76 - warm and fuzzy first use message Former-commit-id: 3c93c3c9c9fe4c0b3aeb316cf46ea35791273456 --- www/js/DataModel.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'www/js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 4afd4ad4..caca93d6 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -390,6 +390,19 @@ angular.module('zmApp.controllers') isBackground: function() { return isBackground; }, + + isFirstUse: function() { + return ((window.localStorage.getItem("isFirstUse")==undefined)?true:false); + + }, + + //----------------------------------------------------------------- + // Allow the option to reset first use if I need it in future + //----------------------------------------------------------------- + setFirstUse: function(val) { + window.localStorage.setItem("isFirstUse",val?"1":"0"); + + }, -- cgit v1.2.3