Skip to content

Commit 5319223

Browse files
SharonStratsCopilot
andcommitted
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e3adbf6 commit 5319223

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Header.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,10 @@ export function createCompactButton (dom: Document, onClick?: EventListener) {
117117
dom,
118118
undefined,
119119
'Compact',
120+
onClick,
120121
{ needsBorder: true }
121122
)
122123
myCompactButton.classList.add('sourcePaneCompactButton')
123-
if (onClick) {
124-
myCompactButton.addEventListener('click', onClick)
125-
}
126124
return myCompactButton
127125
}
128126

0 commit comments

Comments
 (0)