summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/app.js')
-rwxr-xr-xwww/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index af63f450..7c03fbdd 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -701,8 +701,9 @@ angular.module('zmApp', [
if (response.data && typeof(response.data) == 'string' && response.data.startsWith("<pre class=\"cake-error\">")) {
console.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="+response.data);
+ // console.log ("FIXED="+JSON.stringify(response.data));
}
//"data":"<pre class=\"cake-error\">
return response;