diff --git a/src/components/Authorise.vue b/src/components/Authorise.vue index 030cbc47..3b9428d7 100644 --- a/src/components/Authorise.vue +++ b/src/components/Authorise.vue @@ -48,11 +48,10 @@ export default { */ this.getUrlAuthCode() + /** + * Refresh token already exists - we must get a new one. + */ if (this.auth.refreshToken) { - window.console.log( - 'refresh token exists, means we need to ask for a new one' - ) - this.requestAccessTokens('refresh_token') } }, @@ -70,7 +69,7 @@ export default { /** * Check to see if the URL contains an auth code - * returned after the user grants consent from Spotify + * returned after the user grants consent from Spotify. */ getUrlAuthCode() { const urlAuthCode = currentParams.get('code') diff --git a/src/components/NowPlaying.vue b/src/components/NowPlaying.vue index dfee36c2..feb925da 100644 --- a/src/components/NowPlaying.vue +++ b/src/components/NowPlaying.vue @@ -198,7 +198,6 @@ export default { this.playerResponse.error?.status === 401 || this.playerResponse.error?.status === 400 ) { - window.console.log('throw error') this.handleExpiredToken() return diff --git a/src/utils/props.js b/src/utils/props.js index af6d886a..8720ae80 100644 --- a/src/utils/props.js +++ b/src/utils/props.js @@ -1,6 +1,7 @@ /** * Util: Props - * Helper file to keep consistent props across all components. + * - Helper file to keep consistent props across all components. + * ----------------------------------------------------------------------------- */ export default { msg: { diff --git a/src/utils/utils.js b/src/utils/utils.js index dfdb1e2d..45162761 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -1,6 +1,7 @@ /** - * Util: Utilities - * Global functions that can be used across multiple files. + * Utils: Utilities. + * - Global functions that can be used across multiple files. + * ----------------------------------------------------------------------------- */ /**