mirror of
https://github.com/tazihad/obsidian-easy-keep-view.git
synced 2026-07-22 05:49:04 +00:00
fix: multi tab spawn
This commit is contained in:
parent
763ccf8c79
commit
80f87bab58
1 changed files with 2 additions and 2 deletions
|
|
@ -392,9 +392,9 @@ export default class EasyKeepViewPlugin extends Plugin {
|
|||
this.app.workspace.iterateAllLeaves(leaf => {
|
||||
const viewType = leaf.view.getViewType();
|
||||
const viewState = leaf.view.getState();
|
||||
if ((viewType === "markdown" || viewType === "image") && viewState?.file === filePath) {
|
||||
if (viewState?.file === filePath) {
|
||||
existingLeaf = leaf;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (existingLeaf) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue