ELECTRON-1036: fix window destroyed exception on moving window (#563)

* ELECTRON-1036: fix window destroyed exception on moving window

* update version number
This commit is contained in:
Vishwas Shashidhar
2019-01-29 22:59:44 +05:30
committed by GitHub
parent 608e293a98
commit c844c7e14b
2 changed files with 2 additions and 2 deletions

View File

@@ -856,7 +856,7 @@ function getMenu() {
* @returns {*}
*/
function getWindowSizeAndPosition(window) {
if (window) {
if (window && !window.isDestroyed()) {
let newPos = window.getPosition();
let newSize = window.getSize();