Fix failing thumbnails
This commit is contained in:
parent
a904de5d7a
commit
523a9cd734
@ -224,9 +224,7 @@
|
||||
<span class="text">
|
||||
<em class="type">{{type}}</em>
|
||||
{{#equal type "image"}}
|
||||
<a href="{{text}}" target="_blank">
|
||||
<img src="{{text}}" class="image">
|
||||
</a>
|
||||
<img src="{{text}}" class="image">
|
||||
{{else}}
|
||||
{{{uri text}}}
|
||||
{{/equal}}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "shout",
|
||||
"description": "A web IRC client",
|
||||
"version": "0.10.1",
|
||||
"version": "0.10.2",
|
||||
"author": "Mattias Erming",
|
||||
"preferGlobal": true,
|
||||
"bin": {
|
||||
|
@ -56,8 +56,10 @@ function fetchImage(url, callback) {
|
||||
req.on("error", function(e) {
|
||||
console.log(e);
|
||||
});
|
||||
req.on("end", function(e, res) {
|
||||
callback(name);
|
||||
req.on("end", function() {
|
||||
if (this.req.res.statusCode == 200) {
|
||||
callback(name);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user