@@ -5,7 +5,7 @@ import Icons from './icons';
55import handleOption from './options' ;
66import Template from './template' ;
77import Bar from './bar' ;
8- import User from './user ' ;
8+ import Storage from './storage ' ;
99import Lrc from './lrc' ;
1010import Controller from './controller' ;
1111import Timer from './timer' ;
@@ -79,7 +79,7 @@ class APlayer {
7979 } ) ;
8080 }
8181 this . events = new Events ( ) ;
82- this . user = new User ( this ) ;
82+ this . storage = new Storage ( this ) ;
8383 this . bar = new Bar ( this . template ) ;
8484 this . controller = new Controller ( this ) ;
8585 this . timer = new Timer ( this ) ;
@@ -191,7 +191,7 @@ class APlayer {
191191 }
192192 } ) ;
193193
194- this . volume ( this . user . get ( 'volume' ) , true ) ;
194+ this . volume ( this . storage . get ( 'volume' ) , true ) ;
195195 }
196196
197197 setAudio ( audio ) {
@@ -349,7 +349,7 @@ class APlayer {
349349 percentage = Math . min ( percentage , 1 ) ;
350350 this . bar . set ( 'volume' , percentage , 'height' ) ;
351351 if ( ! nostorage ) {
352- this . user . set ( 'volume' , percentage ) ;
352+ this . storage . set ( 'volume' , percentage ) ;
353353 }
354354
355355 this . audio . volume = percentage ;
0 commit comments