Skip to content

Commit 53a6748

Browse files
committed
0.4.0
1 parent 8d42b9e commit 53a6748

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@substrate-system/drag-drop",
3-
"version": "0.3.5",
3+
"version": "0.4.0",
44
"type": "module",
55
"description": "Simplify the drag & drop API",
66
"directories": {

src/util.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import type { ListenerObject } from './index.js'
2-
import Debug from '@substrate-system/debug'
3-
const debug = Debug()
42

53
/**
64
* An object with file paths as keys.
@@ -69,12 +67,9 @@ export async function handleItems (
6967
items:DataTransferItemList,
7068
showHiddenFiles:boolean = false
7169
):Promise<DropRecord> {
72-
debug('handling it', showHiddenFiles)
7370
let files:DropRecord = {}
7471
for (let i = 0; i < items.length; i++) {
7572
const item = items[i].webkitGetAsEntry()
76-
debug('fullpath', item?.fullPath)
77-
debug('the pop', item?.fullPath.split('/').pop())
7873
if (item?.fullPath.split('/').pop()?.startsWith('.')) {
7974
if (!showHiddenFiles) continue
8075
}

0 commit comments

Comments
 (0)