diff options
author | Jesús <heckyel@hyperbola.info> | 2022-02-11 11:08:56 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-02-11 11:08:56 -0500 |
commit | 69e20fc11381bdc94c416f11527289a34ffb89ed (patch) | |
tree | 4b8969904958e4a377a9dd00cabd972c1ce22429 /src/js/ui.js | |
parent | 421de00c8bb27fd0cd01d19ed4c2681ef2d63446 (diff) | |
download | plyr-69e20fc11381bdc94c416f11527289a34ffb89ed.tar.lz plyr-69e20fc11381bdc94c416f11527289a34ffb89ed.tar.xz plyr-69e20fc11381bdc94c416f11527289a34ffb89ed.zip |
Diffstat (limited to 'src/js/ui.js')
-rw-r--r-- | src/js/ui.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/js/ui.js b/src/js/ui.js index c8b19677..b674c70d 100644 --- a/src/js/ui.js +++ b/src/js/ui.js @@ -82,6 +82,9 @@ const ui = { // Reset time display controls.timeUpdate.call(this); + // Reset duration display + controls.durationUpdate.call(this); + // Update the UI ui.checkPlaying.call(this); @@ -181,13 +184,13 @@ const ui = { .call(this) // Load image .then(() => loadImage(poster)) - .catch((err) => { + .catch((error) => { // Hide poster on error unless it's been set by another call if (poster === this.poster) { ui.togglePoster.call(this, false); } // Rethrow - throw err; + throw error; }) .then(() => { // Prevent race conditions |