mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-02 22:01:09 +08:00
fix: not being able to make requests on very old browsers (@fehmer) (#5711)
This commit is contained in:
parent
8a09acd8d5
commit
482de29460
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ function buildApi(timeout: number): (args: ApiFetcherArgs) => Promise<{
|
|||
headers["Authorization"] = `Bearer ${token}`;
|
||||
}
|
||||
const response = await fetch(request.path, {
|
||||
signal: AbortSignal.timeout(timeout),
|
||||
signal: AbortSignal?.timeout?.(timeout),
|
||||
method: request.method as Method,
|
||||
headers,
|
||||
body: request.body,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue