forked from coracle/caravel
Switch to different navigation style
This commit is contained in:
@@ -74,6 +74,9 @@ async function request<T>(path: string, init?: RequestInit): Promise<T> {
|
||||
} catch {
|
||||
// ignored
|
||||
}
|
||||
if (response.status === 403 && path.startsWith("/admin/") && typeof window !== "undefined") {
|
||||
window.location.replace("/relays")
|
||||
}
|
||||
throw new ApiError(message, response.status)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user