mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add check for volume parameter in URL before setting volume (#372)
This commit is contained in:
parent
798bf579c0
commit
db6f9c957e
@ -204,8 +204,10 @@
|
|||||||
|
|
||||||
@Watch('volume', { immediate: true })
|
@Watch('volume', { immediate: true })
|
||||||
onVolume(volume: number) {
|
onVolume(volume: number) {
|
||||||
|
if (new URL(location.href).searchParams.has('volume')) {
|
||||||
this.$accessor.video.setVolume(volume)
|
this.$accessor.video.setVolume(volume)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Watch('hideControls', { immediate: true })
|
@Watch('hideControls', { immediate: true })
|
||||||
onHideControls(enabled: boolean) {
|
onHideControls(enabled: boolean) {
|
||||||
|
Loading…
Reference in New Issue
Block a user