Skip to content

Commit

Permalink
(fix) ミュート復帰時に音量が固定される
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Jan 12, 2024
1 parent 6271f94 commit a65002b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkMediaAudio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function togglePlayPause() {

function toggleMute() {
if (volume.value === 0) {
volume.value = .5;
volume.value = defaultStore.state.mediaPlayer.volume;
} else {
volume.value = 0;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkMediaVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function toggleFullscreen() {

function toggleMute() {
if (volume.value === 0) {
volume.value = .5;
volume.value = defaultStore.state.mediaPlayer.volume;
} else {
volume.value = 0;
}
Expand Down

0 comments on commit a65002b

Please sign in to comment.