Skip to content

Commit

Permalink
Introduce sanity check with former commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andyherbert committed May 1, 2020
1 parent 9eedb91 commit 53bc884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/moebius.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async function open_file(file) {
}

function open_in_new_window(win) {
if (docs[win.id].open_in_current_window) {
if (win && docs[win.id].open_in_current_window) {
return false;
}
return !win || docs[win.id].network || docs[win.id].file || docs[win.id].edited;
Expand Down

0 comments on commit 53bc884

Please sign in to comment.