Compare commits

..

No commits in common. "761b4f05fd1d6a7b3c369a765db0c354006eb361" and "b2e70bb0f7997bb7d85f37d64266dd89edae4965" have entirely different histories.

View File

@ -105,13 +105,13 @@ class FeedItem extends HTMLElement {
i.src = url.origin + i.getAttribute('src'); i.src = url.origin + i.getAttribute('src');
}); });
[...this.shadowRoot.querySelectorAll('a[href^="/"]')].forEach(a => { [...this.shadowRoot.querySelectorAll('a[href^="/"]')].forEach(a => {
a.href = url.origin + a.getAttribute('href'); a.href = url.origin + a.getAttribute('src');
}); });
[...this.shadowRoot.querySelectorAll('img:not([src^=http])')].forEach(i => { [...this.shadowRoot.querySelectorAll('img:not([src^=http])')].forEach(i => {
i.src = url.origin +'/'+ i.getAttribute('src'); i.src = url.origin +'/'+ i.getAttribute('src');
}); });
[...this.shadowRoot.querySelectorAll('a:not([href^=http])')].forEach(a => { [...this.shadowRoot.querySelectorAll('a:not([href^=http])')].forEach(a => {
a.href = url.origin +'/'+ a.getAttribute('href'); a.href = url.origin +'/'+ a.getAttribute('src');
}); });
}) })
} }