This commit is contained in:
pg 2016-01-28 23:50:36 +01:00
父節點 0fa68f85bb
當前提交 32986b4ae4
共有 2 個檔案被更改,包括 8 行新增2 行删除

5
index.html Normal 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>

查看文件

@ -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.