function syncMainPlayPause(state) {
		/*
  	Ensures we have a string for the state otherwise we grab the
  	state from the config.
  */
		if (typeof state != "string") {
			state = _config2.default.active_song.paused ? "paused" : "playing";
		}

		/*
  	Get all play pause buttons.
  */
		var playPauseElements = document.querySelectorAll('.amplitude-play-pause[amplitude-main-play-pause="true"]');

		/*
  	Iterate over all of the play pause elements syncing the
  	display visually.
  */
		for (var i = 0; i < playPauseElements.length; i++) {
			/*
   	Determines what classes we should add and remove
   	from the elements.
   */
			switch (state) {
				case 'playing':
					_helpers2.default.setElementPlay(playPauseElements[i]);
					break;
				case 'paused':
					_helpers2.default.setElementPause(playPauseElements[i]);
					break;
			}
		}
	}
/**
  * Syncs the main play pause buttons to the state of the active song.
  *
  * @param {string} state The state of the player
  * @access public
  */
Syncs the main play pause buttons to the state of the active song.
@param {string} state The state of the player
@access public
Syncs the main play pause buttons to the state of the active song . @param { string } state The state of the player @access public
function syncMainPlayPause(state) {
		if (typeof state != "string") {
			state = _config2.default.active_song.paused ? "paused" : "playing";
		}
		var playPauseElements = document.querySelectorAll('.amplitude-play-pause[amplitude-main-play-pause="true"]');
		for (var i = 0; i < playPauseElements.length; i++) {
			switch (state) {
				case 'playing':
					_helpers2.default.setElementPlay(playPauseElements[i]);
					break;
				case 'paused':
					_helpers2.default.setElementPause(playPauseElements[i]);
					break;
			}
		}
	}
function syncMainPlayPause ( state ) { if ( typeof state != "string" ) { state = _config2 . default . active_song . paused ? "paused" : "playing" ; } var playPauseElements = document . querySelectorAll ( '.amplitude-play-pause[amplitude-main-play-pause="true"]' ) ; for ( var i = 0 ; i < playPauseElements . length ; i ++ ) { switch ( state ) { case 'playing' : _helpers2 . default . setElementPlay ( playPauseElements [ i ] ) ; break ; case 'paused' : _helpers2 . default . setElementPause ( playPauseElements [ i ] ) ; break ; } } }
Syncs the main play pause buttons to the state of the active song.
Syncs the main play pause buttons to the state of the active song .
/*
  	Ensures we have a string for the state otherwise we grab the
  	state from the config.
  */ /*
  	Get all play pause buttons.
  */ /*
  	Iterate over all of the play pause elements syncing the
  	display visually.
  */ /*
   	Determines what classes we should add and remove
   	from the elements.
   */