Skip to content

Commit

Permalink
#822 use correct injector
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Jun 6, 2019
1 parent 1d24c0a commit c351857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ angular.module('zmApp', [
},

response: function (response) {

nvr = $injector.get('NVR');
var cookies = response.headers("Set-Cookie");
if (cookies != null) {

Expand All @@ -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));
Expand Down

0 comments on commit c351857

Please sign in to comment.