Use the moz selector hack only on Firefox.
This commit is contained in:
parent
a2f1c83503
commit
b7117afaeb
@ -2855,7 +2855,7 @@
|
|||||||
img = $.el('img', {
|
img = $.el('img', {
|
||||||
src: a.href
|
src: a.href
|
||||||
});
|
});
|
||||||
if (a.parentNode.className !== 'op') {
|
if (engine === "Gecko" && a.parentNode.className !== 'op') {
|
||||||
filesize = $('.filesize', a.parentNode);
|
filesize = $('.filesize', a.parentNode);
|
||||||
_ref = filesize.textContent.match(/(\d+)x/), _ = _ref[0], max = _ref[1];
|
_ref = filesize.textContent.match(/(\d+)x/), _ = _ref[0], max = _ref[1];
|
||||||
img.style.maxWidth = "-moz-calc(" + max + "px)";
|
img.style.maxWidth = "-moz-calc(" + max + "px)";
|
||||||
|
|||||||
@ -2188,7 +2188,7 @@ imgExpand =
|
|||||||
a = thumb.parentNode
|
a = thumb.parentNode
|
||||||
img = $.el 'img',
|
img = $.el 'img',
|
||||||
src: a.href
|
src: a.href
|
||||||
unless a.parentNode.className is 'op'
|
if engine is "Gecko" and a.parentNode.className isnt 'op'
|
||||||
filesize = $ '.filesize', a.parentNode
|
filesize = $ '.filesize', a.parentNode
|
||||||
[_, max] = filesize.textContent.match /(\d+)x/
|
[_, max] = filesize.textContent.match /(\d+)x/
|
||||||
img.style.maxWidth = "-moz-calc(#{max}px)"
|
img.style.maxWidth = "-moz-calc(#{max}px)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user