mirror of
https://github.com/simon987/feed_viz.git
synced 2025-04-19 01:36:42 +00:00
hotfix for *chan links
This commit is contained in:
parent
bd16446de4
commit
061d8ed6eb
@ -169,7 +169,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="js/materialize.min.js"></script>
|
<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>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -140,9 +140,11 @@ function createImage(src, j) {
|
|||||||
const img = document.createElement("img");
|
const img = document.createElement("img");
|
||||||
img.setAttribute("class", "img");
|
img.setAttribute("class", "img");
|
||||||
img.setAttribute("src", src);
|
img.setAttribute("src", src);
|
||||||
|
if (exchange === "reddit") {
|
||||||
img.onclick = function () {
|
img.onclick = function () {
|
||||||
window.open("https://reddit.com/" + j["id"]);
|
window.open("https://reddit.com/" + j["id"]);
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
img.onerror = function () {
|
img.onerror = function () {
|
||||||
//Don't display broken images
|
//Don't display broken images
|
||||||
|
Loading…
x
Reference in New Issue
Block a user