We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0de7246 commit 45b606aCopy full SHA for 45b606a
index.ts
@@ -58,8 +58,9 @@ export class SpotifyClient {
58
return responseData?.access_token;
59
};
60
61
- getCurrentlyPlaying = async (options: CurrentlyPlayingOptions = {}) => {
62
- const { fallbackToLastPlayed = false } = options;
+ getCurrentlyPlaying = async ({
+ fallbackToLastPlayed = false
63
+ }: CurrentlyPlayingOptions = {}) => {
64
try {
65
const accessToken = await this._genAccesToken();
66
const headers = { Authorization: `Bearer ${accessToken}` };
0 commit comments