Browse Source

Fixed saving muting.

KrisVos130 7 năm trước cách đây
mục cha
commit
fd1de94faf
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      frontend/app/js/views/Station/VolumeSlider.jsx

+ 2 - 0
frontend/app/js/views/Station/VolumeSlider.jsx

@@ -27,10 +27,12 @@ export default class VolumeSlider extends Component {
 	};
 
 	muteVolume = () => {
+		localStorage.setItem("muted", true);
 		this.props.onVolumeMute();
 	};
 
 	unmuteVolume = () => {
+		localStorage.setItem("muted", false);
 		this.props.onVolumeUnmute();
 	};