Merge "MWMediaTransferHandler: Allow uploading of dropped Blobs"

This commit is contained in:
jenkins-bot 2017-04-27 19:32:42 +00:00 committed by Gerrit Code Review
commit 604dc2d86a

View file

@ -36,13 +36,6 @@ ve.ui.MWMediaTransferHandler.static.types = [ 'image/jpeg', 'image/png', 'image/
ve.ui.MWMediaTransferHandler.static.extensions = [ 'jpg', 'jpeg', 'png', 'gif', 'svg' ];
ve.ui.MWMediaTransferHandler.static.matchFunction = function ( item ) {
var file = item.getAsFile();
// If file is null, return true as the data is not available yet from the browser.
// If file is a non-File (pasted Blob), return false as this is not yet supported.
return !file || file instanceof File;
};
/* Methods */
/**