fullscreen: adapt to new version

This commit is contained in:
bordun 2020-01-26 17:31:19 +01:00
parent 17c0e64eca
commit 0502882c37
3 changed files with 7 additions and 5 deletions

View file

@ -16,7 +16,6 @@ module.exports = function(options={}) {
icon: path.resolve(__dirname + '/../assets/logo.png'),
backgroundColor: options.color || theme.backgroundColor,
type: options.type,
fullscreen: options.fullscreen,
useContentSize: true,
autoHideMenuBar: true,
webPreferences: {
@ -26,6 +25,9 @@ module.exports = function(options={}) {
})
window.once('ready-to-show', ()=>{
if (options.fullscreen) {
window.setFullScreen(true)
}
window.show()
})