mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-02 03:46:20 +02:00
add check for volume parameter in URL before setting volume (#372)
This commit is contained in:
parent
798bf579c0
commit
db6f9c957e
1 changed files with 3 additions and 1 deletions
|
@ -204,7 +204,9 @@
|
||||||
|
|
||||||
@Watch('volume', { immediate: true })
|
@Watch('volume', { immediate: true })
|
||||||
onVolume(volume: number) {
|
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 })
|
@Watch('hideControls', { immediate: true })
|
||||||
|
|
Loading…
Add table
Reference in a new issue