diff --git a/index.html b/index.html index de82fc2..3a2a36e 100644 --- a/index.html +++ b/index.html @@ -169,7 +169,7 @@ - + diff --git a/js/main.js b/js/main.js index 0ee73bb..28310dd 100644 --- a/js/main.js +++ b/js/main.js @@ -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