aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-18 11:01:59 +0100
committerChocobozzz <me@florianbigard.com>2019-12-18 11:01:59 +0100
commit9f0327aeb39c307ce7da28dda57cc526c928ca62 (patch)
tree8f00887ccf055cee8644a58605ec37e428e54aae /client/src/assets
parent03d641a0d7f996de44ec898ad739bc4050514ba1 (diff)
downloadPeerTube-9f0327aeb39c307ce7da28dda57cc526c928ca62.tar.gz
PeerTube-9f0327aeb39c307ce7da28dda57cc526c928ca62.tar.zst
PeerTube-9f0327aeb39c307ce7da28dda57cc526c928ca62.zip
Fix build
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/upnext/upnext-plugin.ts9
1 files changed, 5 insertions, 4 deletions
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 {
100 let now: number 100 let now: number
101 let newOffset: number 101 let newOffset: number
102 102
103 this.autoplayRing.setAttribute('stroke-dasharray', this.dashOffsetStart) 103 this.autoplayRing.setAttribute('stroke-dasharray', '' + this.dashOffsetStart)
104 this.autoplayRing.setAttribute('stroke-dashoffset', -this.dashOffsetStart) 104 this.autoplayRing.setAttribute('stroke-dashoffset', '' + -this.dashOffsetStart)
105 105
106 this.title.innerHTML = this.getTitle() 106 this.title.innerHTML = this.getTitle()
107 107
@@ -127,8 +127,9 @@ class EndCard extends Component {
127 clearTimeout(timeout) 127 clearTimeout(timeout)
128 cb(false) 128 cb(false)
129 } else { 129 } else {
130 newOffset = Math.max(-this.dashOffsetTotal, this.autoplayRing.getAttribute('stroke-dashoffset') - this.chunkSize) 130 const strokeDashOffset = parseInt(this.autoplayRing.getAttribute('stroke-dashoffset'), 10)
131 this.autoplayRing.setAttribute('stroke-dashoffset', newOffset) 131 newOffset = Math.max(-this.dashOffsetTotal, strokeDashOffset - this.chunkSize)
132 this.autoplayRing.setAttribute('stroke-dashoffset', '' + newOffset)
132 timeout = setTimeout(update.bind(this), this.interval) 133 timeout = setTimeout(update.bind(this), this.interval)
133 } 134 }
134 135