diff --git a/lib/services/spotify/index.js b/lib/services/spotify/index.js index c6cd127..1606531 100644 --- a/lib/services/spotify/index.js +++ b/lib/services/spotify/index.js @@ -38,9 +38,8 @@ function looseMatch(needle, haystack, type) { } export function* lookupId(id, type) { - console.log(id); const token = yield spotify.clientCredentialsGrant(); - spotify.setAccessToken(token.body['access_token']); + spotify.setAccessToken(token.body.access_token); let data = yield spotify[`get${type.charAt(0).toUpperCase()}${type.slice(1)}s`]([id]); data = data.body[`${type}s`][0]; @@ -88,7 +87,7 @@ export function* lookupId(id, type) { export function* search(data, original = {}) { const token = yield spotify.clientCredentialsGrant(); - spotify.setAccessToken(token.body['access_token']); + spotify.setAccessToken(token.body.access_token); const markets = ['US', 'GB', 'JP', 'BR', 'DE', 'ES']; function cleanParam(str) { diff --git a/public/src/app.vue b/public/src/app.vue index 68f62a6..f3bc503 100644 --- a/public/src/app.vue +++ b/public/src/app.vue @@ -16,7 +16,7 @@ diff --git a/views/index.html b/views/index.html index 44cf8fb..8b64071 100644 --- a/views/index.html +++ b/views/index.html @@ -4,13 +4,13 @@ Combine.fm • <%=head.title%> - + ' /> - +