From 32986b4ae4adba49149a1897786a90def5bac1d1 Mon Sep 17 00:00:00 2001 From: pg Date: Thu, 28 Jan 2016 23:50:36 +0100 Subject: [PATCH] maximise --- index.html | 5 +++++ main.js | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..609a2e3 --- /dev/null +++ b/index.html @@ -0,0 +1,5 @@ + + + + + diff --git a/main.js b/main.js index 730843e..18407de 100644 --- a/main.js +++ b/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.