Skip to content

Instantly share code, notes, and snippets.

@DrewDahlman
Created June 1, 2015 18:57
Show Gist options
  • Save DrewDahlman/9cc978ce0216597cecf2 to your computer and use it in GitHub Desktop.
Save DrewDahlman/9cc978ce0216597cecf2 to your computer and use it in GitHub Desktop.
Full Screen Kiosk
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