summaryrefslogtreecommitdiff
path: root/src/client/scripts/sound.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2021-03-06 13:23:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2021-03-06 13:23:59 +0900
commitbca4e5f0faf45ab227bf64a4a6b8f3793c7a79c2 (patch)
tree96d544f3b7b7493af9f14feaa21225564dae22bb /src/client/scripts/sound.ts
parentImprove usability (diff)
downloadsharkey-bca4e5f0faf45ab227bf64a4a6b8f3793c7a79c2.tar.gz
sharkey-bca4e5f0faf45ab227bf64a4a6b8f3793c7a79c2.tar.bz2
sharkey-bca4e5f0faf45ab227bf64a4a6b8f3793c7a79c2.zip
refactor assets
Diffstat (limited to 'src/client/scripts/sound.ts')
-rw-r--r--src/client/scripts/sound.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/scripts/sound.ts b/src/client/scripts/sound.ts
index 176d2b68bf..bb4cfee06a 100644
--- a/src/client/scripts/sound.ts
+++ b/src/client/scripts/sound.ts
@@ -16,7 +16,7 @@ export function playFile(file: string, volume: number) {
if (cache.has(file)) {
audio = cache.get(file);
} else {
- audio = new Audio(`/assets/sounds/${file}.mp3`);
+ audio = new Audio(`/static-assets/sounds/${file}.mp3`);
cache.set(file, audio);
}
audio.volume = masterVolume - ((1 - volume) * masterVolume);