From ba05e109697db1e3446b3312a62da9c5f9548e4d Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 6 Jun 2019 13:05:28 -0400 Subject: #822 use correct injector --- www/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www') diff --git a/www/js/app.js b/www/js/app.js index 90dfe96a..30cbb6e8 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -711,7 +711,7 @@ angular.module('zmApp', [ }, response: function (response) { - + nvr = $injector.get('NVR'); var cookies = response.headers("Set-Cookie"); if (cookies != null) { @@ -731,7 +731,7 @@ angular.module('zmApp', [ if (response.data && typeof(response.data) == 'string' && (response.data.indexOf("
")==0)) {
-            NVR.debug ("cake error detected, attempting fix...");
+            nvr.log ("cake error detected, attempting fix...");
             //console.log ("BAD = "+ JSON.stringify(response.data));
             response.data = JSON.parse(response.data.replace(/
[\s\S]*<\/pre>/,''));
            // console.log ("FIXED="+JSON.stringify(response.data));
-- 
cgit v1.2.3