chore: update to standard 12

This commit is contained in:
Samuel Attard 2018-09-14 02:10:51 +10:00
parent 9e85bdb02c
commit 558fff69e7
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E
198 changed files with 4455 additions and 2940 deletions

View file

@ -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]))