mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-20 06:32:05 +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) {
|
function fixRoles(MenuItem) {
|
||||||
switch (MenuItem.role) {
|
switch (MenuItem.role) {
|
||||||
case 'reload':
|
case 'reload':
|
||||||
MenuItem['label'] = 'Reload';
|
MenuItem.label = 'Reload';
|
||||||
MenuItem.click = () => { win.webContents.reload(); }
|
MenuItem.click = () => { win.webContents.reload(); }
|
||||||
break;
|
break;
|
||||||
case 'forceReload':
|
case 'forceReload':
|
||||||
@ -105,6 +106,6 @@ function fixRoles(MenuItem) {
|
|||||||
function checkCheckbox(item) {
|
function checkCheckbox(item) {
|
||||||
//check item
|
//check item
|
||||||
item.checked = !item.checked;
|
item.checked = !item.checked;
|
||||||
//update menu
|
//update menu (closes it)
|
||||||
win.webContents.send('updateMenu', true);
|
win.webContents.send('updateMenu', true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user