chore: update to standard 12
This commit is contained in:
parent
9e85bdb02c
commit
558fff69e7
198 changed files with 4455 additions and 2940 deletions
|
@ -8,7 +8,7 @@ window.onload = function () {
|
|||
}
|
||||
|
||||
window.confirm = function (message, title) {
|
||||
const {dialog} = require('electron').remote
|
||||
const { dialog } = require('electron').remote
|
||||
if (title == null) {
|
||||
title = ''
|
||||
}
|
||||
|
@ -52,8 +52,8 @@ const convertToMenuTemplate = function (items) {
|
|||
}
|
||||
|
||||
const createMenu = function (x, y, items) {
|
||||
const {remote} = require('electron')
|
||||
const {Menu} = remote
|
||||
const { remote } = require('electron')
|
||||
const { Menu } = remote
|
||||
|
||||
let template = convertToMenuTemplate(items)
|
||||
if (useEditMenuItems(x, y, template)) {
|
||||
|
@ -63,7 +63,7 @@ const createMenu = function (x, y, items) {
|
|||
|
||||
// The menu is expected to show asynchronously.
|
||||
setTimeout(function () {
|
||||
menu.popup({window: remote.getCurrentWindow()})
|
||||
menu.popup({ window: remote.getCurrentWindow() })
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ const getEditMenuItems = function () {
|
|||
}
|
||||
|
||||
const showFileChooserDialog = function (callback) {
|
||||
const {dialog} = require('electron').remote
|
||||
const { dialog } = require('electron').remote
|
||||
const files = dialog.showOpenDialog({})
|
||||
if (files != null) {
|
||||
callback(pathToHtml5FileObject(files[0]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue