diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/DataModel.js | 13 |
1 files changed, 13 insertions, 0 deletions
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"); + + }, |
