aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/controller')
-rw-r--r--web/app/controller/Root.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 5d22a74a..e389266e 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -161,7 +161,7 @@ Ext.define('Traccar.controller.Root', {
socket = new WebSocket(protocol + '//' + window.location.host + pathname + 'api/socket');
socket.onclose = function (event) {
- Ext.toast(Strings.errorSocket, Strings.errorTitle, 'br');
+ Traccar.app.showToast(Strings.errorSocket, Strings.errorTitle);
Ext.Ajax.request({
url: 'api/devices',
@@ -248,7 +248,7 @@ Ext.define('Traccar.controller.Root', {
if (this.soundPressed()) {
this.beep();
}
- Ext.toast(array[i].text, device.get('name'), 'br');
+ Traccar.app.showToast(array[i].text, device.get('name'));
}
}
},