fix: comment

This commit is contained in:
Nolan Lawson 2024-03-18 22:05:15 -07:00
parent 8b72668fda
commit afdd2d3e6a
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ export async function abortOpportunity () {
export function throwIfAborted (signal) {
if (signal.aborted) {
// This is what is thrown by fetch() if the signal is aborted
// https://developer.mozilla.org/en-US/docs/Web/API/DOMException#aborterror
throw new DOMException('The operation was aborted', 'AbortError')
}
}