Fix missing parentheses in auto-gif. Close #245
This commit is contained in:
parent
311101297c
commit
e2051be615
@ -3339,7 +3339,7 @@
|
||||
var src, thumb;
|
||||
if (root.hidden || !(thumb = $('img[md5]', root))) return;
|
||||
src = thumb.parentNode.href;
|
||||
if (/gif$/.test(src && !/^Spoiler/.test(thumb.alt))) return thumb.src = src;
|
||||
if (/gif$/.test(src) && !/^Spoiler/.test(thumb.alt)) return thumb.src = src;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -2630,7 +2630,7 @@ imgGif =
|
||||
node: (root) ->
|
||||
return if root.hidden or !thumb = $ 'img[md5]', root
|
||||
src = thumb.parentNode.href
|
||||
if /gif$/.test src and !/^Spoiler/.test thumb.alt
|
||||
if /gif$/.test(src) and !/^Spoiler/.test thumb.alt
|
||||
thumb.src = src
|
||||
|
||||
imgExpand =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user