Skip to content

Commit

Permalink
v1.0.4 Hotfix
Browse files Browse the repository at this point in the history
Fixed #4
  • Loading branch information
Ascensionist committed Jul 17, 2024
1 parent acefa61 commit 70bbf94
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "client",
"version": "1.0.3",
"version": "1.0.4",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "saturn",
"private": true,
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"main": "background.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion app/src/deezer.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ class DeezerAPI {

//Save SID cookie
if (method == 'deezer.getUserData') {
global.token = results.USER.OPTIONS.license_token;
global.resetTimer = Math.floor(new Date().getTime() / 1000);
let sidCookie = res.headers['set-cookie'].filter((e) => e.startsWith('sid='));
if (sidCookie.length > 0) {
Expand Down Expand Up @@ -139,6 +138,10 @@ class DeezerAPI {
return await this.callApi(method, args, gatewayInput);
}

if (method == 'deezer.getUserData') {
global.token = data.results.USER.OPTIONS.license_token;
}

return data;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "saturn",
"private": true,
"version": "1.0.3",
"version": "1.0.4",
"description": "Saturn PC",
"scripts": {
"pack": "electron-builder --dir",
Expand Down

0 comments on commit 70bbf94

Please sign in to comment.