mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-23 21:33:19 +01:00
Revert error handling in fetchBlobExcerpt
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c8b2dcde09
commit
49624d22bc
@ -283,13 +283,9 @@ function initRepoDiffHashChangeListener() {
|
||||
const expandAllSavedState = new Map<string, HTMLElement>();
|
||||
|
||||
async function fetchBlobExcerpt(tr: Element, url: string): Promise<void> {
|
||||
try {
|
||||
const tempTbody = document.createElement('tbody');
|
||||
tempTbody.innerHTML = await (await GET(url)).text();
|
||||
tr.replaceWith(...tempTbody.children);
|
||||
} catch (error) {
|
||||
console.error('Error:', error);
|
||||
}
|
||||
const tempTbody = document.createElement('tbody');
|
||||
tempTbody.innerHTML = await (await GET(url)).text();
|
||||
tr.replaceWith(...tempTbody.children);
|
||||
}
|
||||
|
||||
async function expandAllLines(btn: HTMLElement, fileBox: HTMLElement) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user