Skip to content

Commit

Permalink
Rename function to make if() more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
LlGC-jop committed Oct 29, 2024
1 parent 44e19d0 commit 8a8871f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ export class OpenSeadragonCenterPanel extends CenterPanel<
}
}

if(annotations.length && this.isZoomToInitialAnnotationEnabled()) {
if (annotations.length && this.shouldZoomToInitialAnnotation()) {
this.zoomToInitialAnnotation();
}
}
Expand Down Expand Up @@ -1142,7 +1142,7 @@ export class OpenSeadragonCenterPanel extends CenterPanel<
);
}

isZoomToInitialAnnotationEnabled(): boolean {
shouldZoomToInitialAnnotation(): boolean {
return Bools.getBool(
this.config.options.zoomToInitialAnnotation,
true
Expand Down

0 comments on commit 8a8871f

Please sign in to comment.