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;
|
thumb = this.previousSibling;
|
||||||
imgExpand.contract(thumb);
|
imgExpand.contract(thumb);
|
||||||
src = this.src.split('/');
|
src = this.src.split('/');
|
||||||
if (url = redirect.image(src[3], src[5])) {
|
if (src[2] === 'images.4chan.org' && (url = redirect.image(src[3], src[5]))) {
|
||||||
return imgExpand.expand(thumb, url);
|
return setTimeout(imgExpand.expand, 10000, thumb, url);
|
||||||
} else if (engine === 'webkit') {
|
} else if (engine === 'webkit') {
|
||||||
return req = $.ajax(this.src, (function() {
|
return req = $.ajax(this.src, (function() {
|
||||||
if (this.status !== 404) {
|
if (this.status !== 404) {
|
||||||
|
|||||||
@ -2340,8 +2340,8 @@ imgExpand =
|
|||||||
thumb = @previousSibling
|
thumb = @previousSibling
|
||||||
imgExpand.contract thumb
|
imgExpand.contract thumb
|
||||||
src = @src.split '/'
|
src = @src.split '/'
|
||||||
if url = redirect.image src[3], src[5]
|
if src[2] is 'images.4chan.org' and url = redirect.image src[3], src[5]
|
||||||
imgExpand.expand thumb, url
|
setTimeout imgExpand.expand, 10000, thumb, url
|
||||||
#navigator.online is not x-browser/os yet
|
#navigator.online is not x-browser/os yet
|
||||||
else if engine is 'webkit'
|
else if engine is 'webkit'
|
||||||
req = $.ajax @src, (->
|
req = $.ajax @src, (->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user