mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix typo
This commit is contained in:
@ -3,7 +3,7 @@ const getSongInfo = require('../../providers/song-info');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
let controls;
|
let controls;
|
||||||
let CurrentSongInfo;
|
let currentSongInfo;
|
||||||
|
|
||||||
module.exports = win => {
|
module.exports = win => {
|
||||||
const registerCallback = getSongInfo(win);
|
const registerCallback = getSongInfo(win);
|
||||||
@ -12,15 +12,15 @@ module.exports = win => {
|
|||||||
|
|
||||||
registerCallback(songInfo => {
|
registerCallback(songInfo => {
|
||||||
//update currentsonginfo for win.on('show')
|
//update currentsonginfo for win.on('show')
|
||||||
CurrentSongInfo = songInfo;
|
currentSongInfo = songInfo;
|
||||||
// update thumbar
|
// update thumbar
|
||||||
setThumbar(win, songInfo)
|
setThumbar(win, songInfo)
|
||||||
});
|
});
|
||||||
|
|
||||||
// need to set thumbar again after win.show
|
// need to set thumbar again after win.show
|
||||||
win.on("show", () => {
|
win.on("show", () => {
|
||||||
if (CurrentSongInfo) {
|
if (currentSongInfo) {
|
||||||
setThumbar(win, CurrentSongInfo)
|
setThumbar(win, currentSongInfo)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user