Stop progress bar code blowing up if window is defocused before download starts #327
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue