aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/ui.js')
-rw-r--r--src/js/ui.js7
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