From db6f9c957ea73dcb3bc07447af9644dd7ec56702 Mon Sep 17 00:00:00 2001 From: FapFapDragon <48346054+FapFapDragon@users.noreply.github.com> Date: Sun, 10 Mar 2024 08:43:30 -0400 Subject: [PATCH] add check for volume parameter in URL before setting volume (#372) --- client/src/app.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/app.vue b/client/src/app.vue index a150859..668e7a4 100644 --- a/client/src/app.vue +++ b/client/src/app.vue @@ -204,7 +204,9 @@ @Watch('volume', { immediate: true }) onVolume(volume: number) { - this.$accessor.video.setVolume(volume) + if (new URL(location.href).searchParams.has('volume')) { + this.$accessor.video.setVolume(volume) + } } @Watch('hideControls', { immediate: true })