mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 04:31:20 -08:00
bugfix
This commit is contained in:
1 parent
a325aabe98
commit
88526b3b7f
3 files changed
+8
-3
No files matched your search
@@ -7,7 +7,6 @@ export default class Volume {
|
||||
this.option = option;
|
||||
this.isDroging = false;
|
||||
this.init();
|
||||
this.setVolumeHandle(getStorage('volume'));
|
||||
}
|
||||
|
||||
init() {
|
||||
@@ -18,6 +17,10 @@ export default class Volume {
|
||||
this.$volumeHandle = append(this.$volumePanel, '<div class="art-volume-slider-handle"></div>');
|
||||
this.$volumeClose.style.display = 'none';
|
||||
|
||||
const volume = getStorage('volume');
|
||||
this.setVolumeHandle(volume);
|
||||
player.volume(volume);
|
||||
|
||||
proxy(this.$volume, 'click', () => {
|
||||
this.$volume.style.display = 'none';
|
||||
this.$volumeClose.style.display = 'block';
|
||||
|
||||
Reference in new issue
Block a user