This commit is contained in:
pg 2016-01-28 23:50:36 +01:00
parent 0fa68f85bb
commit 32986b4ae4
2 changed files with 8 additions and 2 deletions

5
index.html Normal file
View File

@ -0,0 +1,5 @@
<html>
<body>
<webview id="foo" src="https://www.github.com/" style="display:inline-block; width:640px; height:480px"></webview>
</body>
</html>

View File

@ -111,11 +111,12 @@ app.on('ready', function() {
// and load the index.html of the app.
mainWindow.loadURL(default_url);
// Open the DevTools.
//mainWindow.webContents.openDevTools();
mainWindow.maximize()
mainWindow.webContents.openDevTools();
refresh.on('event', function(url) {
console.log("got data", url)
//console.log(mainWindow)
const options = {"extraHeaders" : "pragma: no-cache\n"}
const options = {}
mainWindow.loadURL(url, options);
});
// Emitted when the window is closed.