From 7075f47ff57a36b0af48150ac370d9d9c232a55d Mon Sep 17 00:00:00 2001 From: ririxi Date: Mon, 19 Feb 2024 20:53:43 +0100 Subject: [PATCH] chore: use getter instead of accessing the `_state` object --- jsHelper/spicetifyWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsHelper/spicetifyWrapper.js b/jsHelper/spicetifyWrapper.js index 6bfe34db26..ef11fc5c18 100644 --- a/jsHelper/spicetifyWrapper.js +++ b/jsHelper/spicetifyWrapper.js @@ -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) {