aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/assets/player/upnext/upnext-plugin.ts9
-rwxr-xr-xscripts/build/index.sh10
2 files changed, 13 insertions, 6 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
diff --git a/scripts/build/index.sh b/scripts/build/index.sh
index fde6efe32..12359e68f 100755
--- a/scripts/build/index.sh
+++ b/scripts/build/index.sh
@@ -2,6 +2,12 @@
2 2
3set -eu 3set -eu
4 4
5npm run concurrently -- -k \ 5if [[ -n ${1+x} ]]; then
6 "npm run build:client" \ 6 clientCommand="npm run build:client -- $1"
7else
8 clientCommand="npm run build:client"
9fi
10
11npm run concurrently -- --raw \
12 "$clientCommand" \
7 "npm run build:server" 13 "npm run build:server"