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,