diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/app/controller/Root.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 3bcc7bc5..afdbea62 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -142,6 +142,11 @@ Ext.define('Traccar.controller.Root', { url: 'api/devices', success: function (response) { self.updateDevices(Ext.decode(response.responseText)); + }, + failure: function(response) { + if (response.status === 401) { + window.location.reload(); + } } }); |