diff --git a/script/readmes.js b/script/readmes.js index bc4b6f792..26c8289c0 100644 --- a/script/readmes.js +++ b/script/readmes.js @@ -106,10 +106,10 @@ function cleanReadme(readme, defaultBranch, app) { `${app.slug}: updating ${$relativeImages.length} relative image URLs` ) $relativeImages.each((i, img) => { - $(img).attr( - 'src', - `${app.repository}/raw/${defaultBranch}/${$(img).attr('src')}` - ) + $(img).attr({ + 'src': `${app.repository.replace('github.com', 'raw.githubusercontent.com')}/${defaultBranch}/${$(img).attr('src')}`, + crossorigin: '' + }) }) }