Do not try to reload the picture immediately from archivers; if it fails to load from archivers, try to load
from 4chan again.
This commit is contained in:
parent
8313c05195
commit
0ccacc490f
@ -3023,8 +3023,8 @@
|
||||
thumb = this.previousSibling;
|
||||
imgExpand.contract(thumb);
|
||||
src = this.src.split('/');
|
||||
if (url = redirect.image(src[3], src[5])) {
|
||||
return imgExpand.expand(thumb, url);
|
||||
if (src[2] === 'images.4chan.org' && (url = redirect.image(src[3], src[5]))) {
|
||||
return setTimeout(imgExpand.expand, 10000, thumb, url);
|
||||
} else if (engine === 'webkit') {
|
||||
return req = $.ajax(this.src, (function() {
|
||||
if (this.status !== 404) {
|
||||
|
||||
@ -2340,8 +2340,8 @@ imgExpand =
|
||||
thumb = @previousSibling
|
||||
imgExpand.contract thumb
|
||||
src = @src.split '/'
|
||||
if url = redirect.image src[3], src[5]
|
||||
imgExpand.expand thumb, url
|
||||
if src[2] is 'images.4chan.org' and url = redirect.image src[3], src[5]
|
||||
setTimeout imgExpand.expand, 10000, thumb, url
|
||||
#navigator.online is not x-browser/os yet
|
||||
else if engine is 'webkit'
|
||||
req = $.ajax @src, (->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user