X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/52c41c20759ed4920d5a1f4008e7e0bfd9fa70f9..fd9164545d4a1cf2d508b4125a45643a0b8375fa:/src/redakcja/static/js/wiki/xslt.js?ds=sidebyside diff --git a/src/redakcja/static/js/wiki/xslt.js b/src/redakcja/static/js/wiki/xslt.js index 922a3ba2..00854a79 100644 --- a/src/redakcja/static/js/wiki/xslt.js +++ b/src/redakcja/static/js/wiki/xslt.js @@ -60,17 +60,10 @@ function xml2html(options) { source.text(''); options.error(error.text(), source_text); } else { - let galleryUrl = new URL( - options.base, - window.location.href - ); $("img", $(doc.childNodes)).each(function() { $(this).attr( 'src', - new URL( - $(this).attr('src'), - galleryUrl - ) + $(this).attr('src'), ); })