Return asap.
This commit is contained in:
parent
032374911c
commit
eeeecc7d93
@ -1859,7 +1859,7 @@
|
||||
init: function() {
|
||||
return g.callbacks.push(function(root) {
|
||||
var board, img, nb, _, _ref;
|
||||
if (root.className === 'inline' || !(img = $('img[alt^=Spoiler]', root))) {
|
||||
if (!(img = $('img[alt^=Spoiler]', root) || root.className === 'inline')) {
|
||||
return;
|
||||
}
|
||||
img.removeAttribute('height');
|
||||
|
||||
@ -1486,7 +1486,7 @@ sauce =
|
||||
revealSpoilers =
|
||||
init: ->
|
||||
g.callbacks.push (root) ->
|
||||
return if root.className is 'inline' or not img = $ 'img[alt^=Spoiler]', root
|
||||
return if not img = $('img[alt^=Spoiler]', root) or root.className is 'inline'
|
||||
img.removeAttribute 'height'
|
||||
img.removeAttribute 'width'
|
||||
[_, board, nb] = img.parentNode.href.match /(\w+)\/src\/(\d+)/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user