Skip to content

Commit

Permalink
Update src/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Tobias Bocanegra <[email protected]>
  • Loading branch information
buuhuu and tripodsan authored Aug 28, 2023
1 parent 7511ebc commit 61e31ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ async function run(request, ctx) {
}
const html = await res.text();
const imgSrcPolicy = res.headers.get('x-html2md-img-src')?.split(/\s+/) || [];
if (imgSrcPolicy.indexOf('self') < 0) imgSrcPolicy.push('self');
if (imgSrcPolicy.indexOf('self') < 0) {
imgSrcPolicy.push('self');
}

// only use media handler when loaded via fstab. otherwise images are not processed.
let mediaHandler;
Expand Down

0 comments on commit 61e31ac

Please sign in to comment.