mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-02-01 04:13:43 +00:00
lint
This commit is contained in:
@ -74,10 +74,11 @@ function fixCheck(ogTemplate){
|
||||
}
|
||||
}
|
||||
|
||||
//custom menu doesn't support roles, so they get injected manually
|
||||
function fixRoles(MenuItem) {
|
||||
switch (MenuItem.role) {
|
||||
case 'reload':
|
||||
MenuItem['label'] = 'Reload';
|
||||
MenuItem.label = 'Reload';
|
||||
MenuItem.click = () => { win.webContents.reload(); }
|
||||
break;
|
||||
case 'forceReload':
|
||||
@ -105,6 +106,6 @@ function fixRoles(MenuItem) {
|
||||
function checkCheckbox(item) {
|
||||
//check item
|
||||
item.checked = !item.checked;
|
||||
//update menu
|
||||
//update menu (closes it)
|
||||
win.webContents.send('updateMenu', true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user