mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-12-22 05:09: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> {
|
private async openLeaf(name: string, center: boolean, split: boolean): Promise<void> {
|
||||||
if (center) {
|
if (center) {
|
||||||
this.app.workspace.detachLeavesOfType(name);
|
|
||||||
let leaf = this.app.workspace.getLeaf(split);
|
let leaf = this.app.workspace.getLeaf(split);
|
||||||
await leaf.setViewState({ type: name, active: true });
|
await leaf.setViewState({ type: name, active: true });
|
||||||
} else {
|
} 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