Skip to content

Commit b913264

Browse files
committed
chore(player): remove play playlist :)
1 parent a458432 commit b913264

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

static/js/player.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ function setLoading(loading, fallback) {
174174
* @returns {[Function, Function, Function]}
175175
*/
176176
function playPauser(audioEl) {
177-
let startedPlaylist = false;
178-
179177
const __play = () => {
180178
audioEl.play();
181179
const songEl = document.getElementById(
@@ -193,12 +191,6 @@ function playPauser(audioEl) {
193191
setPlayerButtonIcon(playPauseToggleExapndedEl, Player.icons.play);
194192
};
195193
const __toggle = () => {
196-
const playPlaylistEl = document.getElementById("play-playlist-button");
197-
if (!!playPlaylistEl && !startedPlaylist) {
198-
playPlaylistEl.click();
199-
startedPlaylist = true;
200-
return;
201-
}
202194
if (audioEl.paused) {
203195
__play();
204196
} else {

0 commit comments

Comments
 (0)