server: fix read-only + fullscreen option combo
This commit is contained in:
parent
8878c9283b
commit
f2b2dbe9f6
3 changed files with 7 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ module.exports = function(options={}) {
|
|||
|
||||
window.webContents.once('page-title-updated', ()=>{
|
||||
if (options.fullscreen) {
|
||||
window.webContents.sendInputEvent({keyCode: 'F11', type: 'keyDown'})
|
||||
window.webContents.executeJavaScript('window.ELECTRON_FULLSCREEN()', true)
|
||||
}
|
||||
if (app._noGpu) {
|
||||
window.webContents.executeJavaScript(`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue