open-stage-control/app/main/electron-app.js

19 lines
439 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var {app, Menu} = require('electron'),
settings = require('./settings'),
path = require('path')
app.commandLine.appendSwitch('--touch-events')
if (settings.read('noVsync') || (!settings.cli && settings.read('argv')['disable-vsync'])) {
app.commandLine.appendSwitch('--disable-gpu-vsync')
}
app.on('window-all-closed', function() {
if (process.platform != 'darwin') {
app.quit()
}
})
module.exports = app