From 902bf74871c1f6ebe1b56cd53e61ee61f8d4a0f2 Mon Sep 17 00:00:00 2001 From: Trek H Date: Tue, 28 Jan 2020 14:32:45 +1030 Subject: [PATCH] mjpeg-player: comments and simplification --- cmd/mjpeg-player/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/mjpeg-player/main.js b/cmd/mjpeg-player/main.js index 9f24b5d0..c51ee771 100644 --- a/cmd/mjpeg-player/main.js +++ b/cmd/mjpeg-player/main.js @@ -16,7 +16,7 @@ LICENSE for more details. You should have received a copy of the GNU General Public License in gpl.txt. - If not, see http://www.gnu.org/licenses.. + If not, see http://www.gnu.org/licenses. */ import Hls from "./hlsjs/hls.js"; @@ -86,7 +86,7 @@ function play() { const player = new Worker("player.js"); let rate = document.getElementById('rate'); - if (rate.value && rate.value > 0) { + if (rate.value > 0) { player.postMessage({ msg: "setFrameRate", data: rate.value }); }