chore: update to standard 12
This commit is contained in:
parent
9e85bdb02c
commit
558fff69e7
198 changed files with 4455 additions and 2940 deletions
|
@ -1,10 +1,10 @@
|
|||
const {expect} = require('chai')
|
||||
const {BrowserWindow} = require('electron').remote
|
||||
const { expect } = require('chai')
|
||||
const { BrowserWindow } = require('electron').remote
|
||||
|
||||
const {emittedOnce} = require('./events-helpers')
|
||||
const { emittedOnce } = require('./events-helpers')
|
||||
|
||||
exports.closeWindow = async (window = null,
|
||||
{assertSingleWindow} = {assertSingleWindow: true}) => {
|
||||
{ assertSingleWindow } = { assertSingleWindow: true }) => {
|
||||
const windowExists = (window !== null) && !window.isDestroyed()
|
||||
if (windowExists) {
|
||||
const isClosed = emittedOnce(window, 'closed')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue