From 9d41e819fd8384b2ffa04b933e3209fcf4c3cb53 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sun, 19 Jul 2020 17:58:17 +0200 Subject: [PATCH] Update SpotifyControls.plugin.js --- Plugins/SpotifyControls/SpotifyControls.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/SpotifyControls/SpotifyControls.plugin.js b/Plugins/SpotifyControls/SpotifyControls.plugin.js index 8843dfda20..8f6e241d53 100644 --- a/Plugins/SpotifyControls/SpotifyControls.plugin.js +++ b/Plugins/SpotifyControls/SpotifyControls.plugin.js @@ -18,7 +18,7 @@ var SpotifyControls = (_ => { }, body: JSON.stringify(Object.assign({}, data)) }, (error, response, result) => { - if (error && reponse.statusCode == 401) { + if (response.statusCode == 401) { BDFDB.LibraryModules.SpotifyUtils.getAccessToken(socket.accountId).then(promiseResult => { let newSocketDevice = BDFDB.LibraryModules.SpotifyTrackUtils.getActiveSocketAndDevice(); this.request(newSocketDevice.socket, newSocketDevice.device, type, song, data).then(_ => { @@ -171,7 +171,7 @@ var SpotifyControls = (_ => { return class SpotifyControls { getName () {return "SpotifyControls";} - getVersion () {return "1.0.3";} + getVersion () {return "1.0.4";} getAuthor () {return "DevilBro";} @@ -179,7 +179,7 @@ var SpotifyControls = (_ => { constructor () { this.changelog = { - "fixed":[["Resume","Playlists should no longer restart, when you resume a song"]] + "fixed":[["Controls","Fixed an issue where the controls would stop working after some time"],["Resume","Playlists should no longer restart, when you resume a song"]] }; this.patchedModules = {