Skip to content

Commit

Permalink
BrowserView: Change menu.ts to not use webview props.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsvipul committed Jul 18, 2019
1 parent 97d974a commit e78135d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/main/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AppMenu {
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
click(_item: any, focusedWindow: any) {
if (focusedWindow) {
focusedWindow.webContents.toggleDevTools();
focusedWindow.webContents.openDevTools({mode: 'undocked'});
}
}
},
Expand Down Expand Up @@ -234,12 +234,12 @@ class AppMenu {
});
tabs.forEach(tab => {
// Do not add functional tab settings to list of windows in menu bar
if (tab.props.role === 'function' && tab.webview.props.name === 'Settings') {
if (tab.props.role === 'function' && tab.props.name === 'Settings') {
return;
}

initialSubmenu.push({
label: tab.webview.props.name,
label: tab.props.name,
accelerator: tab.props.role === 'function' ? '' : `${ShortcutKey} + ${tab.props.index + 1}`,
checked: tab.props.index === activeTabIndex,
click(_item: any, focusedWindow: any) {
Expand Down

0 comments on commit e78135d

Please sign in to comment.