electron/spec-main/fixtures/chromium/other-window.js
Samuel Attard 137622931b
fix: ensure document.visibilityState aligns with the visibility of the TopLevelWindow (#19988)
* fix: ensure document.visibilityState aligns with the visibility of the
TopLevelWindow

* chore: disable the specs on linux on CI
2019-09-05 10:56:06 -07:00

21 lines
357 B
JavaScript

const { app, BrowserWindow } = require('electron')
const ints = (...args) => args.map(a => parseInt(a, 10))
const [x, y, width, height] = ints(...process.argv.slice(2))
let w
app.whenReady().then(() => {
w = new BrowserWindow({
x,
y,
width,
height
})
console.log('__ready__')
})
process.on('SIGTERM', () => {
process.exit(0)
})