From e82392954d3d9cfe291d7a9b898159003738fce8 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Thu, 23 Dec 2021 11:55:08 +0100 Subject: [PATCH] Save one request for api_token --- deezer/gw.js | 1 + 1 file changed, 1 insertion(+) diff --git a/deezer/gw.js b/deezer/gw.js index 5293e3f..a1a942d 100644 --- a/deezer/gw.js +++ b/deezer/gw.js @@ -89,6 +89,7 @@ class GW{ } throw new GWAPIError(result_json.error) } + if (!this.api_token && method == 'deezer.getUserData') this.api_token = result_json.results.checkForm return result_json.results }