Skip to content

Commit

Permalink
@uppy/drop-target: remove isFileTransfer from the public API (#3932)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 1, 2022
1 parent 0e55588 commit 5271d27
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/@uppy/drop-target/src/index.js
Expand Up @@ -51,10 +51,8 @@ export default class DropTarget extends BasePlugin {
}
}

isFileTransfer = isFileTransfer // TODO: expose this as a static instead (or don't expose it at all) in the next major.

handleDrop = async (event) => {
if (!this.isFileTransfer(event)) {
if (!isFileTransfer(event)) {
return
}

Expand Down Expand Up @@ -97,7 +95,7 @@ export default class DropTarget extends BasePlugin {
}

handleDragOver = (event) => {
if (!this.isFileTransfer(event)) {
if (!isFileTransfer(event)) {
return
}

Expand All @@ -116,7 +114,7 @@ export default class DropTarget extends BasePlugin {
}

handleDragLeave = (event) => {
if (!this.isFileTransfer(event)) {
if (!isFileTransfer(event)) {
return
}

Expand Down

0 comments on commit 5271d27

Please sign in to comment.