-
-
Save DrewDahlman/9cc978ce0216597cecf2 to your computer and use it in GitHub Desktop.
Full Screen Kiosk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.on('ready', function() { | |
var Screen = require('screen'); | |
var size = Screen.getPrimaryDisplay().size; | |
var width = size.width; | |
var height = size.height; | |
// Create the browser window. | |
mainWindow = new BrowserWindow({ | |
'width': width, | |
'height': height, | |
'max-width': width, | |
'max-height': height, | |
'fullscreen': true, | |
'frame': true, | |
'kiosk': true, | |
'transparent': true, | |
'show': true, | |
'resizable': false | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment