Skip to content

Commit

Permalink
Switch window fix
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielee committed Mar 22, 2021
1 parent e78526e commit 707b830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/main/Win.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @param {String} winName The name of the window to switch to
*/
switchWindow(winName) {
const originalWindow = BrowserWindow.getFocusedWindow();
const originalWindow = (BrowserWindow.getFocusedWindow() || BrowserWindow.getAllWindows()[0]);

switch (winName) {
case "animator": {
Expand Down

0 comments on commit 707b830

Please sign in to comment.