From f6722a770dcc55610fd3922f2447d0ccd82df0f1 Mon Sep 17 00:00:00 2001 From: C-Lodder Date: Thu, 23 Apr 2020 09:17:51 +0100 Subject: [PATCH] remnoe some semicolons --- src/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/app.js b/src/js/app.js index 7ee7088..1f9ad2f 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -35,7 +35,7 @@ async function fetchPlaylists() { .then((obj) => { empty(playlists) Object.entries(obj).forEach(([key, value]) => { - const shouldExclude = excludes.some(item => value[item]); + const shouldExclude = excludes.some(item => value[item]) const excludeDownloaded = value.name === 'Downloaded' && value.distinguished_kind !== 65 if (!shouldExclude && !excludeDownloaded) { const playlist = document.createElement('a') @@ -127,7 +127,7 @@ window.addEventListener('DOMContentLoaded', () => { } else if (state === 'shuffle') { // Pick a random song to play const items = document.querySelectorAll('.play-button') - const random = items[Math.floor(Math.random() * items.length)]; + const random = items[Math.floor(Math.random() * items.length)] random.click() } }