Skip to content

Commit

Permalink
reduce options
Browse files Browse the repository at this point in the history
  • Loading branch information
willswire committed Mar 1, 2019
1 parent 3ff9837 commit 9fe7d47
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions electron/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const electron = require('electron');
const {
app,
BrowserWindow,
BrowserWindow
} = electron;

let mainWindow;
Expand All @@ -16,6 +16,9 @@ var currentTimeout = 0;
// Slide changing Function
var slideChanger = function () {
mainWindow.loadURL(SLIDE_URLS[currentSlide % SLIDE_URLS.length]);
mainWindow.webContents.on('did-finish-load', function () {
mainWindow.webContents.insertCSS('html,body{ height: 100vh !important; }')
});
currentTimeout = parseInt(TIMEOUT[currentTime % TIMEOUT.length]) * 1000;
currentSlide++;
currentTime++;
Expand All @@ -39,9 +42,7 @@ app.on('ready', () => {
sandbox: false,
overlayScrollbars: false,
nodeIntegration: false,
allowRunningInsecureContent: true,
plugins: true,
nativeWindowOpen: true
plugins: true
}
});

Expand Down

0 comments on commit 9fe7d47

Please sign in to comment.