From c1a2917eaaabe61f7cfd0ec47d6dfbbafc36e5e0 Mon Sep 17 00:00:00 2001 From: Brian Ingenito <28159742+bingenito@users.noreply.github.com> Date: Tue, 6 Aug 2019 14:14:31 -0400 Subject: [PATCH] Add location defined check in base buildLayout --- packages/desktopjs/src/Default/default.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/desktopjs/src/Default/default.ts b/packages/desktopjs/src/Default/default.ts index b381edf2..b289858f 100644 --- a/packages/desktopjs/src/Default/default.ts +++ b/packages/desktopjs/src/Default/default.ts @@ -401,7 +401,7 @@ export namespace Default { layout.windows.push( { name: window.name, - url: nativeWin.location.toString(), + url: (nativeWin && nativeWin.location) ? nativeWin.location.toString() : undefined, id: window.id, bounds: { x: nativeWin.screenX, y: nativeWin.screenY, width: nativeWin.outerWidth, height: nativeWin.outerHeight }, options: options,