Skip to content

Commit ad215a5

Browse files
committed
Refer to signal through opts
1 parent d9422ea commit ad215a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function fetch(url, opts) {
5151
}
5252

5353
if (opts.signal) {
54-
signal.addEventListener('abort', () => {
54+
opts.signal.addEventListener('abort', () => {
5555
finalize()
5656
})
5757
}

0 commit comments

Comments
 (0)