Align comment images

This commit is contained in:
Sander Ferdinand 2018-08-19 15:50:24 +02:00
parent 104432562d
commit f8dbd59f05
2 changed files with 2 additions and 4 deletions

View file

@ -208,9 +208,9 @@
line = line.trim();
if (line && line.search(regexp_url) != -1 && line.indexOf("..") < 0) {
if (line.startsWith('https://i.imgflip.com/')) {
line = `<img src="${line}"/></a><br>`;
line = `<br><img src="${line}"/></a><br>`;
} else if (line.startsWith('https://i.imgur.com/')) {
line = `<img src="${line}"/></a><br>`;
line = `<br><img src="${line}"/></a><br>`;
}
}