mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
apply fix from eslint
This commit is contained in:
@ -18,7 +18,7 @@ const data = {
|
||||
|
||||
const post = async (data) => {
|
||||
const port = 1608;
|
||||
headers = {
|
||||
const headers = {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json',
|
||||
'Access-Control-Allow-Headers': '*',
|
||||
@ -43,15 +43,6 @@ module.exports = async (win) => {
|
||||
data.progress = secToMilisec(t);
|
||||
post(data);
|
||||
});
|
||||
ipcMain.on('playPaused', (_, { isPaused, elapsedSeconds }) => {
|
||||
if (!data.title) {
|
||||
return;
|
||||
}
|
||||
|
||||
data.status = isPaused ? 'stopped' : 'playing';
|
||||
data.progress = secToMilisec(elapsedSeconds);
|
||||
post(data);
|
||||
});
|
||||
|
||||
registerCallback((songInfo) => {
|
||||
if (!songInfo.title && !songInfo.artist) {
|
||||
|
||||
Reference in New Issue
Block a user