Skip to content

Commit

Permalink
Converted ES6 Script
Browse files Browse the repository at this point in the history
  • Loading branch information
railsjack committed Aug 10, 2019
1 parent 4305392 commit 5a741ca
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions player/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand All @@ -111,7 +111,6 @@ class TutorialList {
this.selectorButton.addEventListener('click', (e) => {
this.setDir()
})
this.bindEvents()
}

bindEvents = (evName, callback) => {
Expand Down

0 comments on commit 5a741ca

Please sign in to comment.