mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-11 08:53:44 +02:00
fix data transfer type checking, closes #680
This commit is contained in:
parent
5cc2133cfe
commit
afb54f238d
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user