From 9f0327aeb39c307ce7da28dda57cc526c928ca62 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Dec 2019 11:01:59 +0100 Subject: Fix build --- client/src/assets/player/upnext/upnext-plugin.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'client/src') diff --git a/client/src/assets/player/upnext/upnext-plugin.ts b/client/src/assets/player/upnext/upnext-plugin.ts index 1f0705481..ba9afbe3d 100644 --- a/client/src/assets/player/upnext/upnext-plugin.ts +++ b/client/src/assets/player/upnext/upnext-plugin.ts @@ -100,8 +100,8 @@ class EndCard extends Component { let now: number let newOffset: number - this.autoplayRing.setAttribute('stroke-dasharray', this.dashOffsetStart) - this.autoplayRing.setAttribute('stroke-dashoffset', -this.dashOffsetStart) + this.autoplayRing.setAttribute('stroke-dasharray', '' + this.dashOffsetStart) + this.autoplayRing.setAttribute('stroke-dashoffset', '' + -this.dashOffsetStart) this.title.innerHTML = this.getTitle() @@ -127,8 +127,9 @@ class EndCard extends Component { clearTimeout(timeout) cb(false) } else { - newOffset = Math.max(-this.dashOffsetTotal, this.autoplayRing.getAttribute('stroke-dashoffset') - this.chunkSize) - this.autoplayRing.setAttribute('stroke-dashoffset', newOffset) + const strokeDashOffset = parseInt(this.autoplayRing.getAttribute('stroke-dashoffset'), 10) + newOffset = Math.max(-this.dashOffsetTotal, strokeDashOffset - this.chunkSize) + this.autoplayRing.setAttribute('stroke-dashoffset', '' + newOffset) timeout = setTimeout(update.bind(this), this.interval) } -- cgit v1.2.3