summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index bd21fabe..d7ef3f01 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -164,7 +164,7 @@ angular.module('zmApp', [
// First run in ionic
//------------------------------------------------------------------
-.run(function ($ionicPlatform, $ionicPopup, $rootScope, $state, ZMDataModel, $cordovaSplashscreen, $http, $interval, zmAutoLogin)
+.run(function ($ionicPlatform, $ionicPopup, $rootScope, $state, ZMDataModel, $cordovaSplashscreen, $http, $interval, zmAutoLogin, $fileLogger)
{
ZMDataModel.init();
@@ -221,6 +221,11 @@ angular.module('zmApp', [
ZMDataModel.zmLog("Device is ready");
console.log("**** DEVICE READY ***");
+ $fileLogger.deleteLogfile().then(function() {
+ console.log('Logfile deleted');
+ });
+ $fileLogger.setStorageFilename('zmNinjaLog.txt');
+
setTimeout(function () {