Skip to content

Commit

Permalink
Add timeout support for API calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maczuga committed Sep 3, 2024
1 parent c64a517 commit 09529d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const apiCall = async <T>(url: string, realm: Realm, params?: { [key: str
"Content-Type": "application/json",
"User-Agent": "TauriTSMAppDataGenerator"
},
timeout: 15000,
};

const apiSource = RealmXSource[realm];
Expand Down

0 comments on commit 09529d0

Please sign in to comment.