From e12152f7a8ddfe7f7fc37395a1b03c8fa0f87234 Mon Sep 17 00:00:00 2001 From: Jonathan Cremin Date: Wed, 11 Apr 2018 00:18:43 +0100 Subject: [PATCH] Update footer --- lib/services/spotify/index.js | 5 ++--- public/src/app.vue | 2 +- views/index.html | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) 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%> - + ' /> - +