fix uploading swfs on /f/
Conflicts: LICENSE builds/4chan-X.user.js builds/crx/script.js
This commit is contained in:
parent
8f62341949
commit
0d34429ee0
@ -6362,6 +6362,9 @@
|
||||
},
|
||||
checkDimensions: function(file, isSingle, max) {
|
||||
var img;
|
||||
if (file.type === 'application/x-shockwave-flash') {
|
||||
return QR.handleFile(file, isSingle, max);
|
||||
}
|
||||
img = new Image();
|
||||
img.onload = (function(_this) {
|
||||
return function() {
|
||||
|
||||
@ -6418,6 +6418,9 @@
|
||||
},
|
||||
checkDimensions: function(file, isSingle, max) {
|
||||
var img;
|
||||
if (file.type === 'application/x-shockwave-flash') {
|
||||
return QR.handleFile(file, isSingle, max);
|
||||
}
|
||||
img = new Image();
|
||||
img.onload = (function(_this) {
|
||||
return function() {
|
||||
|
||||
@ -372,6 +372,7 @@ QR =
|
||||
$.addClass QR.nodes.el, 'dump' unless isSingle
|
||||
|
||||
checkDimensions: (file, isSingle, max) ->
|
||||
return QR.handleFile(file, isSingle, max) if file.type is 'application/x-shockwave-flash'
|
||||
img = new Image()
|
||||
img.onload = =>
|
||||
{height, width} = img
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user