launcher ok

This commit is contained in:
bordun 2020-03-11 16:42:45 +01:00
parent a8fee9c5c3
commit 97c504e79a
23 changed files with 220 additions and 89 deletions

View file

@ -57,13 +57,11 @@ module.exports = function(options={}) {
shell.openExternal(url)
})
if (options.fullscreen) {
window.webContents.on('dom-ready', ()=>{
window.webContents.executeJavaScript(`
window.ELECTRON_FULLSCREEN = true
`)
})
}
// window.webContents.on('dom-ready', ()=>{
// window.webContents.executeJavaScript(`
// window.ELECTRON = true
// `)
// })
if (options.zoom === false) {
window.webContents.setVisualZoomLevelLimits(1, 1)