Skip to content

Commit

Permalink
fix: Exclude fetch polyfill from fetch plugin (#6838)
Browse files Browse the repository at this point in the history
This fix excludes the use of
https://www.npmjs.com/package/fetch-polyfill because it does not support
a signal to cancel requests in progress.
  • Loading branch information
avelad authored Jun 17, 2024
1 parent 277afbf commit 8bb2d6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/net/http_fetch_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ shaka.net.HttpFetchPlugin = class {
} else {
return false;
}
return !!(window.fetch && window.AbortController);
return !!(window.fetch && !('polyfill' in window.fetch) &&
window.AbortController);
}
};

Expand Down

0 comments on commit 8bb2d6e

Please sign in to comment.