chore: update to standard 12
This commit is contained in:
parent
9e85bdb02c
commit
558fff69e7
198 changed files with 4455 additions and 2940 deletions
|
@ -1,4 +1,4 @@
|
|||
const {app} = require('electron')
|
||||
const { app } = require('electron')
|
||||
|
||||
const roles = {
|
||||
about: {
|
||||
|
@ -244,7 +244,7 @@ exports.getDefaultAccelerator = (role) => {
|
|||
exports.getDefaultSubmenu = (role) => {
|
||||
if (!roles.hasOwnProperty(role)) return
|
||||
|
||||
let {submenu} = roles[role]
|
||||
let { submenu } = roles[role]
|
||||
|
||||
// remove null items from within the submenu
|
||||
if (Array.isArray(submenu)) {
|
||||
|
@ -257,7 +257,7 @@ exports.getDefaultSubmenu = (role) => {
|
|||
exports.execute = (role, focusedWindow, focusedWebContents) => {
|
||||
if (!canExecuteRole(role)) return false
|
||||
|
||||
const {appMethod, webContentsMethod, windowMethod} = roles[role]
|
||||
const { appMethod, webContentsMethod, windowMethod } = roles[role]
|
||||
|
||||
if (appMethod) {
|
||||
app[appMethod]()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue