From 7bdc9052d36b406b4f1b731e5b750f8f7d9a3f5d Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 19 Jun 2020 12:19:18 -0700 Subject: [PATCH] Fix undefined reference in js --- webroot/js/player/player.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webroot/js/player/player.js b/webroot/js/player/player.js index 47b9905e6..fc769c4d1 100644 --- a/webroot/js/player/player.js +++ b/webroot/js/player/player.js @@ -45,7 +45,9 @@ function setupPlayerEventHandlers() { // }) // player.on('playing', function (e) { - clearTimeout(playerRestartTimer); + if (playerRestartTimer) { + clearTimeout(playerRestartTimer); + } }) // // player.on('waiting', function (e) {