Merge branch 'dev'

This commit is contained in:
Jeff Emmett 2026-03-23 16:01:01 -07:00
commit 20d472a94b
2 changed files with 7 additions and 1 deletions

View File

@ -935,6 +935,8 @@ export function renderShell(opts: ShellOptions): string {
} else { } else {
window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId); window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId);
} }
}).catch(() => {
window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId);
}); });
} else { } else {
window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId); window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId);
@ -956,6 +958,8 @@ export function renderShell(opts: ShellOptions): string {
} else { } else {
window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId); window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId);
} }
}).catch(() => {
window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId);
}); });
} else { } else {
window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId); window.location.href = window.__rspaceNavUrl(spaceSlug, moduleId);

View File

@ -192,7 +192,9 @@ export class TabCache {
app.appendChild(loadingPane); app.appendChild(loadingPane);
try { try {
const resp = await fetch(fetchUrl); const resp = await fetch(fetchUrl, {
headers: { "Accept": "text/html" },
});
if (!resp.ok) { if (!resp.ok) {
loadingPane.remove(); loadingPane.remove();
return false; return false;