Last active
July 30, 2017 20:50
-
-
Save raizal/95db1551c8c771c2dd5a7b46abb89ae5 to your computer and use it in GitHub Desktop.
Passing data on Electron Window initiation
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
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