maximise
This commit is contained in:
parent
0fa68f85bb
commit
32986b4ae4
5
index.html
Normal file
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>
|
5
main.js
5
main.js
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user