Skip to content

Commit

Permalink
fix(node-do): fix errors when dom.window already closed
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Feb 13, 2018
1 parent fbb0325 commit 065ed4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/node/node-dom.ts
Expand Up @@ -35,7 +35,7 @@ export function createDom() {
},

destroy() {
dom.window.close();
dom && dom.window && dom.window.close();
dom = null;
}

Expand Down

0 comments on commit 065ed4e

Please sign in to comment.