mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 12:47:48 +00:00
chore: fix failing on node 14- (#1158)
This commit is contained in:
@@ -3,7 +3,7 @@ import nodeFetch from 'node-fetch';
|
||||
const TIMEOUT = 3000;
|
||||
|
||||
export default async (url: string, options = {}) => {
|
||||
if (!AbortController) {
|
||||
if (!global.AbortController) {
|
||||
return nodeFetch(url, options);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user