summaryrefslogtreecommitdiff
path: root/web/js/kvm/stream.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-11-22 06:22:48 +0300
committerDevaev Maxim <[email protected]>2018-11-22 06:26:58 +0300
commitd3073b9d7e479b979e98043b4f878da306adae6a (patch)
tree9115c037b1dd7b6e3bed4f4ea7ec4a1aa6157fbb /web/js/kvm/stream.js
parenta4357162f452e89121e56500b7b6cba314eb46dd (diff)
design fix, refactoring
Diffstat (limited to 'web/js/kvm/stream.js')
-rw-r--r--web/js/kvm/stream.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/js/kvm/stream.js b/web/js/kvm/stream.js
index 32a8cad8..d543701f 100644
--- a/web/js/kvm/stream.js
+++ b/web/js/kvm/stream.js
@@ -156,8 +156,8 @@ function Streamer() {
var el_grab = document.querySelector("#stream-window-header .window-grab");
var el_info = $("stream-info");
if (online) {
- var fps_suffix = (__client_fps >= 0 ? " / " + __client_fps + " fps" : "");
- el_grab.innerHTML = el_info.innerHTML = "Stream &ndash; " + __resolution.width + "x" + __resolution.height + fps_suffix;
+ var fps_suffix = (__client_fps >= 0 ? ` / ${__client_fps} fps` : "");
+ el_grab.innerHTML = el_info.innerHTML = `Stream &ndash; ${__resolution.width}x${__resolution.height}${fps_suffix}`;
} else {
el_grab.innerHTML = el_info.innerHTML = "Stream &ndash; offline";
}
@@ -183,7 +183,7 @@ function Streamer() {
};
var __sendParam = function(name, value) {
- var http = tools.makeRequest("POST", "/kvmd/streamer/set_params?" + name + "=" + value, function() {
+ var http = tools.makeRequest("POST", `/kvmd/streamer/set_params?${name}=${value}`, function() {
if (http.readyState === 4) {
if (http.status !== 200) {
ui.error("Can't configure stream:<br>", http.responseText);