Skip to content

Commit

Permalink
Add location defined check in base buildLayout (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingenito authored Aug 7, 2019
1 parent 72467dc commit a7355ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/desktopjs/src/Default/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a7355ad

Please sign in to comment.