Skip to content

Commit

Permalink
Fix for startup crash
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Jul 10, 2022
1 parent 5b045da commit 90389d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "pane-relief",
"name": "Pane Relief",
"version": "0.1.14",
"version": "0.1.15",
"minAppVersion": "0.14.5",
"description": "Per-pane history, hotkeys for pane movement + navigation, and more",
"author": "PJ Eby",
Expand Down
4 changes: 2 additions & 2 deletions src/maximizing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ export class Maximizer extends Component {
}

parentForLeaf(leaf: WorkspaceLeaf) {
return this.parentFor(leaf.containerEl);
return this.parentFor(leaf?.containerEl);
}

parentFor(el: Element) {
return el.matchParent(".workspace-split.mod-root, .hover-popover > .popover-content > .workspace-split");
return el?.matchParent(".workspace-split.mod-root, .hover-popover > .popover-content > .workspace-split");
}

}
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"0.1.13": "0.14.5",
"0.1.15": "0.14.5",
"0.0.26": "0.14.5",
"0.0.24": "0.13.31",
"0.0.18": "0.12.15",
Expand Down

0 comments on commit 90389d1

Please sign in to comment.