changed var to const (#13061)

This commit is contained in:
Patrick O'Carroll
2018-08-29 14:26:50 +02:00
committed by Torkel Ödegaard
parent 9423e3e124
commit 5e0d0c5816
50 changed files with 298 additions and 299 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ export class LiveSrv {
}
getWebSocketUrl() {
var l = window.location;
const l = window.location;
return (l.protocol === 'https:' ? 'wss://' : 'ws://') + l.host + config.appSubUrl + '/ws';
}
@@ -66,7 +66,7 @@ export class LiveSrv {
return;
}
var observer = this.observers[message.stream];
const observer = this.observers[message.stream];
if (!observer) {
this.removeObserver(message.stream, null);
return;
@@ -128,5 +128,5 @@ export class LiveSrv {
}
}
var instance = new LiveSrv();
const instance = new LiveSrv();
export { instance as liveSrv };