Skip to content

Commit

Permalink
fix(audio): don't consider iframe referencing itself
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 17, 2023
1 parent 4409000 commit a9f99d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/metascraper-audio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module.exports = ({ getIframe = _getIframe } = {}) => {
if (
typeof normalizedUrl === 'string' &&
normalizedUrl.startsWith('http') &&
normalizedUrl !== url &&
srcs.indexOf(normalizedUrl) === -1
) {
srcs.push(normalizedUrl)
Expand Down

0 comments on commit a9f99d1

Please sign in to comment.