fix uploading swfs on /f/

Conflicts:
	LICENSE
	builds/4chan-X.user.js
	builds/crx/script.js
This commit is contained in:
Brandon 2014-04-02 17:33:12 -07:00 committed by Zixaphir
parent 8f62341949
commit 0d34429ee0
3 changed files with 7 additions and 0 deletions

View File

@ -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() {

View File

@ -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() {

View File

@ -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