mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
changed var to const (#13061)
This commit is contained in:
committed by
Torkel Ödegaard
parent
9423e3e124
commit
5e0d0c5816
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user