Skip to content

Commit

Permalink
unfuck one times
Browse files Browse the repository at this point in the history
  • Loading branch information
twnlink committed Sep 11, 2023
1 parent 7f07a4d commit 65fe1c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/intercept.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ export default function intercept(types, cb, once = false) {

const handleIntercept = once
? (...args) => {
cb(...args);
unintercept();

return cb(...args);
}
: cb;
interceptors[type].push(handleIntercept);
Expand Down

0 comments on commit 65fe1c8

Please sign in to comment.