Skip to content

Commit

Permalink
Ensure isNonCorsProxyDomain returns boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshaughnessy committed Jun 27, 2023
1 parent fdbf5c9 commit 5bcff45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/media-url-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const scaledThumbnailUrlFor = (url, width, height) => {
};

export const isNonCorsProxyDomain = hostname => {
return nonCorsProxyDomains.find(domain => hostname.endsWith(domain));
return !!nonCorsProxyDomains.find(domain => hostname.endsWith(domain));
};

export const proxiedUrlFor = url => {
Expand Down

0 comments on commit 5bcff45

Please sign in to comment.