mirror of
https://github.com/simon987/feed_viz.git
synced 2025-12-14 23:09:03 +00:00
hotfix for *chan links
This commit is contained in:
@@ -140,9 +140,11 @@ function createImage(src, j) {
|
||||
const img = document.createElement("img");
|
||||
img.setAttribute("class", "img");
|
||||
img.setAttribute("src", src);
|
||||
img.onclick = function () {
|
||||
window.open("https://reddit.com/" + j["id"]);
|
||||
};
|
||||
if (exchange === "reddit") {
|
||||
img.onclick = function () {
|
||||
window.open("https://reddit.com/" + j["id"]);
|
||||
};
|
||||
}
|
||||
|
||||
img.onerror = function () {
|
||||
//Don't display broken images
|
||||
|
||||
Reference in New Issue
Block a user