Last active
November 4, 2017 19:39
-
-
Save yoannmoinet/ec76436a0bb911a5081710890b9ea2a8 to your computer and use it in GitHub Desktop.
Check for the existence of a BrowserWindow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const windowExists = (w) => { | |
if (!w || (w && w.isDestroyed())) { | |
return false; | |
} | |
return true; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment