aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-commit.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-commit.ts')
-rw-r--r--web_src/js/features/repo-commit.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-commit.ts b/web_src/js/features/repo-commit.ts
index 56493443d9..8994a57f4a 100644
--- a/web_src/js/features/repo-commit.ts
+++ b/web_src/js/features/repo-commit.ts
@@ -2,7 +2,7 @@ import {createTippy} from '../modules/tippy.ts';
import {toggleElem} from '../utils/dom.ts';
export function initRepoEllipsisButton() {
- for (const button of document.querySelectorAll('.js-toggle-commit-body')) {
+ for (const button of document.querySelectorAll<HTMLButtonElement>('.js-toggle-commit-body')) {
button.addEventListener('click', function (e) {
e.preventDefault();
const expanded = this.getAttribute('aria-expanded') === 'true';