mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "MWMediaTransferHandler: Allow uploading of dropped Blobs"
This commit is contained in:
commit
604dc2d86a
|
@ -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 */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue