mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-18 14:25:55 +02: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>();
|
const expandAllSavedState = new Map<string, HTMLElement>();
|
||||||
|
|
||||||
async function fetchBlobExcerpt(tr: Element, url: string): Promise<void> {
|
async function fetchBlobExcerpt(tr: Element, url: string): Promise<void> {
|
||||||
try {
|
const tempTbody = document.createElement('tbody');
|
||||||
const tempTbody = document.createElement('tbody');
|
tempTbody.innerHTML = await (await GET(url)).text();
|
||||||
tempTbody.innerHTML = await (await GET(url)).text();
|
tr.replaceWith(...tempTbody.children);
|
||||||
tr.replaceWith(...tempTbody.children);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error:', error);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function expandAllLines(btn: HTMLElement, fileBox: HTMLElement) {
|
async function expandAllLines(btn: HTMLElement, fileBox: HTMLElement) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user