Skip to content

Commit

Permalink
remnoe some semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Lodder committed Apr 23, 2020
1 parent 9171769 commit f6722a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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()
}
}
Expand Down

0 comments on commit f6722a7

Please sign in to comment.