Skip to content

Commit

Permalink
Merge pull request #27 from lukemt/fix-21
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan-gibson authored Aug 15, 2023
2 parents 384bed7 + b039264 commit 51fe4f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class Opener extends Plugin {
// - tab is linked to another tab (group), see issue #9
let openElsewhere = false;
const sameFile = file.path == app.workspace.getActiveFile()?.path;
const previewMode = openState?.state?.mode === 'preview';
const previewMode = !!openState?.state?.mode;
if (sameFile || previewMode || this.group) {
oldopenFile && oldopenFile.apply(this, [file, openState]);
return;
Expand Down

0 comments on commit 51fe4f8

Please sign in to comment.