Stop progress bar code blowing up if window is defocused before download starts #327

Merged
6ea86b96 merged 1 commit from progress-bar-fix into master 2017-07-04 19:03:16 +02:00

View file

@ -1,6 +1,6 @@
const { remote } = require("electron");
const application = remote.app;
const win = remote.BrowserWindow.getFocusedWindow();
const win = remote.getCurrentWindow();
const setProgressBar = progress => {
win.setProgressBar(progress);