From 5a741ca0fc1df7068ec1ab91a77df6da2bbcfd6b Mon Sep 17 00:00:00 2001 From: railsjack Date: Fri, 9 Aug 2019 23:43:38 -0300 Subject: [PATCH] Converted ES6 Script --- player/custom.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/player/custom.js b/player/custom.js index 0082801..3338e96 100644 --- a/player/custom.js +++ b/player/custom.js @@ -89,15 +89,15 @@ class Player { this.playerUI.focus() - setTimeout(() => { - var currentTime - if (currentTime = Helper.getConf('currentTime')) { - this.playerUI.currentTime = parseFloat(currentTime) - } - }, 1000) - if (auto_play) { this.playerUI.play() + } else { + setTimeout(() => { + var currentTime + if (currentTime = Helper.getConf('currentTime')) { + this.playerUI.currentTime = parseFloat(currentTime) + } + }, 1000) } } } @@ -111,7 +111,6 @@ class TutorialList { this.selectorButton.addEventListener('click', (e) => { this.setDir() }) - this.bindEvents() } bindEvents = (evName, callback) => {