pg 4 years ago
parent
commit
32986b4ae4
2 changed files with 8 additions and 2 deletions
  1. 5
    0
      index.html
  2. 3
    2
      main.js

+ 5
- 0
index.html View File

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

+ 3
- 2
main.js View File

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

Loading…
Cancel
Save