Skip to content

Commit

Permalink
Rename param
Browse files Browse the repository at this point in the history
  • Loading branch information
baileys-li committed Aug 9, 2024
1 parent ea03dd7 commit 657a6e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions view/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ let startY = 0

let isExpanded = expand.ariaExpanded === 'true'

function changeExpanded(willBeExpanded = false): void {
if (willBeExpanded === isExpanded) return
function changeExpanded(shouldExpand = false): void {
if (shouldExpand === isExpanded) return

isExpanded = willBeExpanded
isExpanded = shouldExpand
expand.ariaExpanded = String(isExpanded)
document.body.classList.toggle('is-main-collapsed', !isExpanded)
}
Expand Down

0 comments on commit 657a6e9

Please sign in to comment.