mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-12-22 13:19:24 +01:00
parent
2e5cbe42f5
commit
33f3407afe
3 changed files with 1 additions and 3 deletions
|
@ -82,7 +82,6 @@ export default class CustomFramesPlugin extends Plugin {
|
|||
|
||||
private async openLeaf(name: string, center: boolean, split: boolean): Promise<void> {
|
||||
if (center) {
|
||||
this.app.workspace.detachLeavesOfType(name);
|
||||
let leaf = this.app.workspace.getLeaf(split);
|
||||
await leaf.setViewState({ type: name, active: true });
|
||||
} else {
|
||||
|
|
File diff suppressed because one or more lines are too long
0
test-vault/note.md
Normal file
0
test-vault/note.md
Normal file
Loading…
Reference in a new issue