summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorlucas_nz <lucas_nz@outlook.com>2020-10-10 23:53:13 +1300
committerlucas_nz <lucas_nz@outlook.com>2020-10-10 23:53:13 +1300
commit958ff8c24307c097b47ee6135f5e76fea3b279a8 (patch)
tree212bddd2a16f7af8432ec7e8f3e5b0d7540129d2 /www/js/app.js
parent2bf676cb16d1477f3cac47c5fa905ab95e467222 (diff)
parent0711179c6e1104f4e1954c7a0685f40ed25c0851 (diff)
Merge branch 'master' of git@github.com:pliablepixels/zmNinja.git
Diffstat (limited to 'www/js/app.js')
-rwxr-xr-xwww/js/app.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 57eb9a3f..c6ed9644 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1119,12 +1119,12 @@ angular.module('zmApp', [
$ionicPlatform.ready(function () {
+
//console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>INSIDE RUN");
NVR.log("******* app .run device ready");
-
$fileLogger.setStorageFilename(zm.logFile);
- $fileLogger.setTimestampFormat('MMM d, y ' + NVR.getTimeFormatSec());
+ $fileLogger.setTimestampFormat('MMM d, y ' + NVR.getTimeFormatMilliSec());
$fileLogger.checkFile().then(function (resp) {
if (parseInt(resp.size) > zm.logFileMaxSize) {
@@ -1480,7 +1480,6 @@ angular.module('zmApp', [
// http://stackoverflow.com/questions/1649086/detect-rotation-of-android-phone-in-the-browser-with-javascript
var checkOrientation = function () {
-
// give rotation time to actually rotate, or width/height will be bogus
$timeout ( function() {
@@ -1945,6 +1944,8 @@ angular.module('zmApp', [
NVR.log ("-->Re-registering online/offine");
document.addEventListener("offline", onOffline, false);
document.addEventListener("online", onOnline, false);
+ window.addEventListener("resize", checkOrientation, false);
+
$rootScope.isDownloading = false;
@@ -1998,6 +1999,8 @@ angular.module('zmApp', [
NVR.log ("-->Clearing online/offine");
document.removeEventListener("offline", onOffline, false);
document.removeEventListener("online", onOnline, false);
+ window.removeEventListener("resize", checkOrientation, false);
+
NVR.setBackground(true);
NVR.setJustResumed(false);