1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Update accelerators to use var instead of function

This commit is contained in:
Brooks Johnson
2016-10-26 19:37:44 -05:00
parent f0d2fb53d4
commit 1d8f729c95

View File

@@ -125,20 +125,14 @@ var view = {
submenu: [
{
label: 'Reload',
accelerator: (function () {
if (process.platform === 'darwin') return 'Command+R'
else return 'Ctrl+R'
})(),
accelerator: OSX ? 'Command+R' : 'Ctrl+R',
click: function () {
BrowserWindow.getFocusedWindow().reload()
}
},
{
label: 'Toggle Developer Tools',
accelerator: (function () {
if (process.platform === 'darwin') return 'Command+Alt+I'
else return 'Ctrl+Shift+I'
})(),
accelerator: OSX ? 'Command+Alt+I' : 'Ctrl+Shift+I',
click: function () {
BrowserWindow.getFocusedWindow().toggleDevTools()
}