diff --git a/plugins/styled-bars/front.js b/plugins/styled-bars/front.js index 13f0bac0..3287dc5d 100644 --- a/plugins/styled-bars/front.js +++ b/plugins/styled-bars/front.js @@ -3,19 +3,19 @@ const { remote, ipcRenderer } = require("electron"); const customTitlebar = require("custom-electron-titlebar"); module.exports = () => { - const myBar = new customTitlebar.Titlebar({ + const bar = new customTitlebar.Titlebar({ backgroundColor: customTitlebar.Color.fromHex("#050505"), itemBackgroundColor: customTitlebar.Color.fromHex("#121212"), }); - myBar.updateTitle(" "); + bar.updateTitle(" "); document.title = "Youtube Music"; ipcRenderer.on("updateMenu", function (event, menu) { if (menu) { - myBar.updateMenu(remote.Menu.getApplicationMenu()); + bar.updateMenu(remote.Menu.getApplicationMenu()); } else { try { - myBar.updateMenu(null); + bar.updateMenu(null); } catch (e) { //will always throw type error - null isn't menu, but it works }