mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 04:20:26 +02:00
fix data transfer type checking, closes #680
This commit is contained in:
@@ -74,7 +74,7 @@ function getTransferType(data) {
|
||||
if (data.rich && data.html) return 'html'
|
||||
if (data.rich && data.text) return 'text'
|
||||
|
||||
if (data.files) return 'files'
|
||||
if (data.files && data.files.length) return 'files'
|
||||
if (data.html) return 'html'
|
||||
if (data.text) return 'text'
|
||||
return 'unknown'
|
||||
|
Reference in New Issue
Block a user