mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
fix: bugs
This commit is contained in:
parent
17ef0e927c
commit
bb87b7f20d
9 changed files with 54 additions and 41 deletions
|
|
@ -22,9 +22,10 @@ const sign = params => {
|
|||
};
|
||||
|
||||
export function auth() {
|
||||
window.open(
|
||||
`https://www.last.fm/api/auth/?api_key=${apiKey}&cb=${baseUrl}/#/lastfm/callback`
|
||||
);
|
||||
const url = process.env.IS_ELECTRON
|
||||
? `https://www.last.fm/api/auth/?api_key=${apiKey}&cb=${baseUrl}/#/lastfm/callback`
|
||||
: `https://www.last.fm/api/auth/?api_key=${apiKey}&cb=${baseUrl}/lastfm/callback`;
|
||||
window.open(url);
|
||||
}
|
||||
|
||||
export function authGetSession(token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue