Revert error handling in fetchBlobExcerpt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
silverwindandClaude Opus 4.6 committed 2026-02-18 07:39:31 +01:00
1 parent c8b2dcde09
commit 49624d22bc
1 file changed
+3 -7
+3 -7
View File
@@ -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) {