summaryrefslogtreecommitdiff
path: root/web/js/stream.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-10-09 16:20:41 +0300
committerDevaev Maxim <[email protected]>2018-10-09 16:20:41 +0300
commita449b39c52392d0d8b043934a15792f21d54e06d (patch)
treec8ff6a67baea441b61ea14f0363ba4b22c0cd116 /web/js/stream.js
parent2c241fab4409eac3b40762d2c23d42ac6e3f8df1 (diff)
refactoring
Diffstat (limited to 'web/js/stream.js')
-rw-r--r--web/js/stream.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/js/stream.js b/web/js/stream.js
index 10388ca1..fe054e47 100644
--- a/web/js/stream.js
+++ b/web/js/stream.js
@@ -46,7 +46,7 @@ function Stream() {
tools.info("Refreshing stream ...");
$("stream-image").className = "stream-image-inactive";
$("stream-box").classList.add("stream-box-inactive");
- $("stream-led").className = "led-off";
+ $("stream-led").className = "led-gray";
$("stream-led").title = "Stream inactive";
$("stream-screenshot-button").disabled = true;
$("stream-quality-slider").disabled = true;
@@ -56,7 +56,7 @@ function Stream() {
__prev_state = false;
} else if (http.status === 200) {
- if ($("stream-quality-slider").value != response.source.quality && !__quality_timer) {
+ if ($("stream-quality-slider").value !== response.source.quality && !__quality_timer) {
$("stream-quality-slider").value = response.source.quality;
$("stream-quality-value").innerHTML = response.source.quality + "%";
}
@@ -88,7 +88,7 @@ function Stream() {
$("stream-image").src = "/streamer/stream?t=" + new Date().getTime();
$("stream-image").className = "stream-image-active";
$("stream-box").classList.remove("stream-box-inactive");
- $("stream-led").className = "led-on";
+ $("stream-led").className = "led-green";
$("stream-led").title = "Stream is active";
$("stream-screenshot-button").disabled = false;
$("stream-quality-slider").disabled = false;