diff --git a/.gitignore b/.gitignore index a1ed9c0..c64c7f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ example/drag-drop.js +node_modules/ diff --git a/index.js b/index.js index d354a0f..56705f8 100644 --- a/index.js +++ b/index.js @@ -141,7 +141,7 @@ function dragDrop (elem, listeners) { } // text drop support - const text = event.dataTransfer.getData('text') + const text = event.dataTransfer.getData('text') || event.dataTransfer.getData('text/uri-list') if (text && listeners.onDropText) { listeners.onDropText(text, pos) }