Don't try to reload an image hover if it's not in the document.
This commit is contained in:
parent
971869ac03
commit
54f4ec2038
@ -2297,6 +2297,9 @@
|
|||||||
error: function() {
|
error: function() {
|
||||||
var src, timeoutID, url,
|
var src, timeoutID, url,
|
||||||
_this = this;
|
_this = this;
|
||||||
|
if (!this.parentNode) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
src = this.src.split('/');
|
src = this.src.split('/');
|
||||||
if (!(src[2] === 'images.4chan.org' && (url = Redirect.image(src[3], src[5])))) {
|
if (!(src[2] === 'images.4chan.org' && (url = Redirect.image(src[3], src[5])))) {
|
||||||
if (g.DEAD) {
|
if (g.DEAD) {
|
||||||
|
|||||||
@ -1935,6 +1935,7 @@ ImageHover =
|
|||||||
clientX: - 45 + parseInt style.left
|
clientX: - 45 + parseInt style.left
|
||||||
clientY: 120 + parseInt style.top
|
clientY: 120 + parseInt style.top
|
||||||
error: ->
|
error: ->
|
||||||
|
return unless @parentNode
|
||||||
src = @src.split '/'
|
src = @src.split '/'
|
||||||
unless src[2] is 'images.4chan.org' and url = Redirect.image src[3], src[5]
|
unless src[2] is 'images.4chan.org' and url = Redirect.image src[3], src[5]
|
||||||
return if g.DEAD
|
return if g.DEAD
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user