aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2021-09-26 11:21:46 -0400
committerGitHub <[email protected]>2021-09-26 11:21:46 -0400
commitfe1717788f28e847cdb23f7361bd68bb1302fb4a (patch)
treed36515667bd282042b2ffd8be98f90c07a57f9ef /src
parentc23f04ba5aab3734189f9dbd213d373249348a79 (diff)
parent7e14084163f1f022e7337ee25b48ac9d97cd5f52 (diff)
downloadmuse-fe1717788f28e847cdb23f7361bd68bb1302fb4a.tar.xz
muse-fe1717788f28e847cdb23f7361bd68bb1302fb4a.zip
Merge pull request #362 from DrowningWhale/master
Diffstat (limited to 'src')
-rw-r--r--src/services/third-party.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/third-party.ts b/src/services/third-party.ts
index 6eaf644..0924b80 100644
--- a/src/services/third-party.ts
+++ b/src/services/third-party.ts
@@ -33,6 +33,6 @@ export default class ThirdParty {
const auth = await this.spotify.clientCredentialsGrant();
this.spotify.setAccessToken(auth.body.access_token);
- this.spotifyTokenTimerId = setTimeout(this.refreshSpotifyToken, (auth.body.expires_in / 2) * 1000);
+ this.spotifyTokenTimerId = setTimeout(this.refreshSpotifyToken.bind(this), (auth.body.expires_in / 2) * 1000);
}
}