mirror of
https://github.com/simon987/feed_viz.git
synced 2025-04-08 05:06:43 +00:00
hotfix for *chan links
This commit is contained in:
parent
bd16446de4
commit
061d8ed6eb
@ -169,7 +169,7 @@
|
||||
</div>
|
||||
|
||||
<script src="js/materialize.min.js"></script>
|
||||
<script src="js/main.js?v=1.3"></script>
|
||||
<script src="js/main.js?v=1.3.1"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user