Skip to content

Commit

Permalink
add check for volume parameter in URL before setting volume (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
FapFapDragon authored Mar 10, 2024
1 parent 798bf57 commit db6f9c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit db6f9c9

Please sign in to comment.