diff options
Diffstat (limited to 'web/app/ErrorManager.js')
-rw-r--r-- | web/app/ErrorManager.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/ErrorManager.js b/web/app/ErrorManager.js index e8b29a319..e809fa382 100644 --- a/web/app/ErrorManager.js +++ b/web/app/ErrorManager.js @@ -16,10 +16,11 @@ Ext.define('Traccar.ErrorManager', { singleton: true, - + check: function (success, response) { + var result; if (success) { - var result = Ext.decode(response.responseText); + result = Ext.decode(response.responseText); if (result.success || result.error === undefined) { return true; } else { |