Add always on top flag
I don’t actually know, whether that does anything in kiosk mode but it didn’t hurt in testing.
This commit is contained in:
@@ -33,6 +33,7 @@ function createMainWindow() {
|
|||||||
icon: 'images/icon-512.png',
|
icon: 'images/icon-512.png',
|
||||||
autoHideMenuBar: true,
|
autoHideMenuBar: true,
|
||||||
kiosk: true,
|
kiosk: true,
|
||||||
|
alwaysOnTop: true,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, 'js/preload.js'),
|
preload: path.join(__dirname, 'js/preload.js'),
|
||||||
webSecurity: false,
|
webSecurity: false,
|
||||||
@@ -86,7 +87,9 @@ function createMenu() {
|
|||||||
{
|
{
|
||||||
label: 'Toggle Fullscreen',
|
label: 'Toggle Fullscreen',
|
||||||
accelerator: isMac ? 'Cmd+F' : 'Ctrl+F',
|
accelerator: isMac ? 'Cmd+F' : 'Ctrl+F',
|
||||||
click: () => { win.setKiosk(!win.kiosk); }
|
click: () => {
|
||||||
|
win.setKiosk(!win.kiosk);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ role: 'reload' },
|
{ role: 'reload' },
|
||||||
{ role: 'quit' },
|
{ role: 'quit' },
|
||||||
|
|||||||
Reference in New Issue
Block a user