mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
Binds recursive call function to keep original scope
This commit is contained in:
parent
c23f04ba5a
commit
7e14084163
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue