Skip to content

Commit

Permalink
Add support for iospress.com in getTimeout function
Browse files Browse the repository at this point in the history
  • Loading branch information
xkopenreview committed Feb 27, 2024
1 parent 72552a0 commit 0718f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/meta-extraction/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const shouldEnableMultiRedirect = (url) => [/doi.org/, /linkinghub.elsevier.com/

const getTimeout = (url) => {
const defaultTimeout = 15_000;
if ([/spiedigitallibrary.org/].some((regex) => regex.test(url))) return defaultTimeout*2;
if ([/spiedigitallibrary.org/,/iospress.com/].some((regex) => regex.test(url))) return defaultTimeout*2;
return defaultTimeout;
};

Expand Down

0 comments on commit 0718f20

Please sign in to comment.