Skip to content

Commit

Permalink
chore: use getter instead of accessing the _state object
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored Feb 19, 2024
1 parent 40ea69f commit 7075f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ window.Spicetify = {
}
if (shouldUseCORSProxy) finalURL = `${corsProxyURL}${finalURL}`;

const Authorization = `Bearer ${Spicetify.Platform.AuthorizationAPI._state.token.accessToken}`;
const Authorization = `Bearer ${Spicetify.Platform.AuthorizationAPI.getState().token.accessToken}`;
let injectedHeaders = {};
if (isWebAPI) injectedHeaders = { Authorization };
if (isSpClientAPI) {
Expand Down

0 comments on commit 7075f47

Please sign in to comment.