Skip to content

Commit

Permalink
Merge pull request #36 from hdykokd/feature/34-2
Browse files Browse the repository at this point in the history
remove hack to make it ready for input
  • Loading branch information
hdykokd authored Aug 26, 2023
2 parents 3fba916 + 3a973eb commit 7b0b0a9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/util/leaf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ import { App, WorkspaceLeaf } from 'obsidian';

export const setActiveLeaf = async (app: App, leaf: WorkspaceLeaf) => {
app.workspace.setActiveLeaf(leaf, { focus: true });
return new Promise((resolve) => {
setTimeout(() => {
leaf.setEphemeralState(leaf.getEphemeralState());
resolve(null);
}, 50);
});
};

export const setActiveLeafById = async (app: App, id: string) => {
Expand Down

0 comments on commit 7b0b0a9

Please sign in to comment.