mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-21 22:18:23 +01:00
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
faa7680555
commit
d00a6083fc
@ -373,11 +373,11 @@ function initDiffExpandAllLines() {
|
||||
});
|
||||
|
||||
// Handle individual expand button clicks
|
||||
addDelegatedEventListener(document, 'click', '.code-expander-button', (btn, e) => {
|
||||
addDelegatedEventListener(document, 'click', '.code-expander-button', async (btn, e) => {
|
||||
e.preventDefault();
|
||||
const tr = btn.closest('tr');
|
||||
const url = btn.getAttribute('data-url');
|
||||
if (tr && url) fetchBlobExcerpt(tr, url);
|
||||
if (tr && url) await fetchBlobExcerpt(tr, url);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user