summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorlucas_nz <lucas_nz@outlook.com>2020-08-29 21:29:50 +1200
committerlucas_nz <lucas_nz@outlook.com>2020-08-31 22:17:03 +1200
commita711b32fd585308284c96f05dc9772a9abca1e3a (patch)
tree579320baaeda22291af59dee2a88d51c1be8cb3f /www/js
parent0e5779874010cd8730ee4f788ff4420f70dd2ad2 (diff)
display gif if api supports
Diffstat (limited to 'www/js')
-rw-r--r--www/js/NVR.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/NVR.js b/www/js/NVR.js
index f1c369c3..a9b552e7 100644
--- a/www/js/NVR.js
+++ b/www/js/NVR.js
@@ -2674,7 +2674,10 @@ angular.module('zmApp.controllers')
//console.log("API VERSION RETURNED: " + JSON.stringify(success));
$rootScope.apiValid = true;
- if (versionCompare(success.data.version, '1.32.0') != -1) {
+ if (versionCompare(success.data.version, '1.34.0') != -1) {
+ debug("objdetect supported in image.php");
+ snapshotFrame = 'objdetect';
+ } else if (versionCompare(success.data.version, '1.32.0') != -1) {
debug("snapshot supported in image.php");
snapshotFrame = 'snapshot';
} else {