utils/prepare_html/index.js
// For all img elements with non-local URLs, prepend the proxy URL (e.g. `https://img0.steemit.com/0x0/`)
For all img elements with non-local URLs, prepend the proxy URL
For all img elements with non - local URLs prepend the proxy URL
function proxifyImages(doc) {
    if (!doc) return;
    [...Object.values(doc.getElementsByTagName('img'))].forEach(node => {
      if(!node.getAttribute) return
        const url = node.getAttribute('src');
        if (!linksRe.local.test(url))
            node.setAttribute('src', proxifyImageUrl(url, true));
    });
}
function proxifyImages ( doc ) { if ( ! doc ) return ; [ ... Object . values ( doc . getElementsByTagName ( 'img' ) ) ] . forEach ( node => { if ( ! node . getAttribute ) return const url = node . getAttribute ( 'src' ) ; if ( ! linksRe . local . test ( url ) ) node . setAttribute ( 'src' , proxifyImageUrl ( url , true ) ) ; } ) ; }
For all img elements with non-local URLs, prepend the proxy URL (e.g.
For all img elements with non - local URLs prepend the proxy URL ( e . g .
// FIXME