mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
fix npe
This commit is contained in:
parent
8eec6b2d49
commit
71f11ab031
1 changed files with 2 additions and 1 deletions
|
@ -292,7 +292,8 @@ export default {
|
|||
});
|
||||
|
||||
this.player.on("volumechange", () => {
|
||||
this.audioplayer.volume = this.player.volume();
|
||||
if (this.audioplayer)
|
||||
this.audioplayer.volume = this.player.volume();
|
||||
if (localStorage)
|
||||
localStorage.setItem(
|
||||
"volume",
|
||||
|
|
Loading…
Reference in a new issue