From 69e20fc11381bdc94c416f11527289a34ffb89ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 11 Feb 2022 11:08:56 -0500 Subject: update from upstream --- src/js/ui.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/js/ui.js') 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 -- cgit v1.2.3