diff --git a/app/moebius.js b/app/moebius.js index 598dc02..57d7261 100644 --- a/app/moebius.js +++ b/app/moebius.js @@ -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;