Skip to content

Instantly share code, notes, and snippets.

@raizal
Last active July 30, 2017 20:50
Show Gist options
  • Save raizal/95db1551c8c771c2dd5a7b46abb89ae5 to your computer and use it in GitHub Desktop.
Save raizal/95db1551c8c771c2dd5a7b46abb89ae5 to your computer and use it in GitHub Desktop.
Passing data on Electron Window initiation
var url = "http://localhost"
var window = new electron.BrowserWindow({
width: width, height: height,
x: display.bounds.x,
y: display.bounds.y,
frame: false,
fullscreen: true,
show: true,
resizable: false,
url : wUrl
})
window.loadURL(url.format({
pathname: path.join(__dirname, 'page.html'),
protocol: 'file:',
slashes: true
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment