diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-06-06 13:05:28 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-06-06 13:05:28 -0400 |
| commit | ba05e109697db1e3446b3312a62da9c5f9548e4d (patch) | |
| tree | 39b17b14295fd2a863557e7bc76e9e256703b5e1 /www/js | |
| parent | 292d4000354795ae327db56e97170b595992ef55 (diff) | |
#822 use correct injector
Diffstat (limited to 'www/js')
| -rwxr-xr-x | www/js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
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("<pre class=\"cake-error\">")==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(/<pre class=\"cake-error\">[\s\S]*<\/pre>/,'')); // console.log ("FIXED="+JSON.stringify(response.data)); |
