Stop progress bar code blowing up if window is defocused before download starts
This commit is contained in:
parent
37d6e5f918
commit
2cc24318c1
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