Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
[FIX] Uncaught error when getting Spotify token
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirpathak97 committed Aug 18, 2018
1 parent dd5a208 commit 6b41918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/SpotifyWebApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let getAccessToken = () => {
return;
}

const settings = window ? window.require('electron-settings') : require('electron-settings');
const settings = process.type === 'renderer' ? window.require('electron-settings') : require('electron-settings');
// Store access_token in a persintant user data file
settings.set('spotifyAccessToken', JSON.parse(body).access_token);
})
Expand Down

0 comments on commit 6b41918

Please sign in to comment.