mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
remove open dependency
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
const fetch = require('node-fetch');
|
||||
const { shell } = require('electron')
|
||||
const md5 = require('md5');
|
||||
const open = require("open");
|
||||
const { setOptions } = require('../../config/plugins');
|
||||
const getSongInfo = require('../../providers/song-info');
|
||||
const defaultConfig = require('../../config/defaults');
|
||||
@ -58,7 +58,7 @@ const authenticate = async config => {
|
||||
// asks the user for authentication
|
||||
config.token = await createToken(config);
|
||||
setOptions('last-fm', config);
|
||||
open(`https://www.last.fm/api/auth/?api_key=${config.api_key}&token=${config.token}`);
|
||||
shell.openExternal(`https://www.last.fm/api/auth/?api_key=${config.api_key}&token=${config.token}`);
|
||||
return config;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user