aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleZZ.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/packets/handlers/handleZZ.ts')
-rw-r--r--webAO/packets/handlers/handleZZ.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/packets/handlers/handleZZ.ts b/webAO/packets/handlers/handleZZ.ts
index 31ceef5..0496d42 100644
--- a/webAO/packets/handlers/handleZZ.ts
+++ b/webAO/packets/handlers/handleZZ.ts
@@ -18,6 +18,6 @@ export const handleZZ = (args: string[]) => {
const oldvolume = client.viewport.getSfxAudio().volume;
client.viewport.getSfxAudio().volume = 1;
client.viewport.getSfxAudio().src = `${AO_HOST}sounds/general/sfx-gallery.opus`;
- client.viewport.getSfxAudio().play();
+ client.viewport.getSfxAudio().play().catch(() => {});
client.viewport.getSfxAudio().volume = oldvolume;
};