summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-17 21:50:56 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-17 21:50:56 +0100
commitbaf406f060ee7f840771d45932dfd8279d551561 (patch)
treee97045b46d23d3ba396467c0e03999d369436aea
parent66563242eebaa92cf3b0c7dfdc70d0d1051be9ab (diff)
add tile to player.. but i think i wanna do this diffrntly
-rw-r--r--frontend/site/audio/audio.player.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/site/audio/audio.player.js b/frontend/site/audio/audio.player.js
index d6bc807..0dacdce 100644
--- a/frontend/site/audio/audio.player.js
+++ b/frontend/site/audio/audio.player.js
@@ -67,6 +67,10 @@ export default class AudioPlayer {
if (restart) {
this.players[id].restart()
}
+ if (tile && !this.players[id].tile) {
+ this.players[id].tile = tile
+ this.players[id].type = type
+ }
return this.players[id]
} else {
this.players[id] = new Player({