build/app.js
/**
   * Toggles the master volume for the soundManager, and saves the preference to storage
   */
Toggles the master volume for the soundManager, and saves the preference to storage
Toggles the master volume for the soundManager and saves the preference to storage
soundButtonClick() {
    const newVolume = this.soundManager.masterVolume === 1 ? 0 : 1;
    this.soundManager.setMasterVolume(newVolume);
    localStorage.setItem('volumePreference', newVolume);
    this.setSoundButtonIcon(newVolume);
  }
soundButtonClick ( ) { const newVolume = this . soundManager . masterVolume === 1 ? 0 : 1 ; this . soundManager . setMasterVolume ( newVolume ) ; localStorage . setItem ( 'volumePreference' , newVolume ) ; this . setSoundButtonIcon ( newVolume ) ; }
Toggles the master volume for the soundManager, and saves the preference to storage
Toggles the master volume for the soundManager and saves the preference to storage