fix dropping images
This commit is contained in:
@@ -58,7 +58,8 @@ export default class ImageNode extends Node {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const images = [...event.dataTransfer.files]
|
const images = Array
|
||||||
|
.from(event.dataTransfer.files)
|
||||||
.filter(file => (/image/i).test(file.type))
|
.filter(file => (/image/i).test(file.type))
|
||||||
|
|
||||||
if (images.length === 0) {
|
if (images.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user