server: fix read-only + fullscreen option combo

This commit is contained in:
jean-emmanuel 2024-08-10 10:07:56 +02:00
parent 8878c9283b
commit f2b2dbe9f6
3 changed files with 7 additions and 1 deletions

View file

@ -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(`