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 }); }