From e272d38ca5e00b19eb70af578c2cdf6c64a08e53 Mon Sep 17 00:00:00 2001 From: Araxeus Date: Wed, 28 Apr 2021 16:54:05 +0300 Subject: [PATCH] fix typo --- plugins/taskbar-mediacontrol/back.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/taskbar-mediacontrol/back.js b/plugins/taskbar-mediacontrol/back.js index 73f35762..18397b6c 100644 --- a/plugins/taskbar-mediacontrol/back.js +++ b/plugins/taskbar-mediacontrol/back.js @@ -3,7 +3,7 @@ const getSongInfo = require('../../providers/song-info'); const path = require('path'); let controls; -let CurrentSongInfo; +let currentSongInfo; module.exports = win => { const registerCallback = getSongInfo(win); @@ -12,15 +12,15 @@ module.exports = win => { registerCallback(songInfo => { //update currentsonginfo for win.on('show') - CurrentSongInfo = songInfo; + currentSongInfo = songInfo; // update thumbar setThumbar(win, songInfo) }); // need to set thumbar again after win.show win.on("show", () => { - if (CurrentSongInfo) { - setThumbar(win, CurrentSongInfo) + if (currentSongInfo) { + setThumbar(win, currentSongInfo) } }) };