(dt)
| 2274 | runUploadBatch(arr); |
| 2275 | }; |
| 2276 | function niDataTransferHasFiles(dt) { |
| 2277 | if (!dt || !dt.types) return false; |
| 2278 | try { |
| 2279 | return dt.types.contains ? dt.types.contains('Files') : Array.prototype.indexOf.call(dt.types, 'Files') >= 0; |
| 2280 | } catch (e) { |
| 2281 | return false; |
| 2282 | } |
| 2283 | } |
| 2284 | function niHandleDialogFileDrop(e) { |
| 2285 | if (!niDataTransferHasFiles(e.dataTransfer)) return; |
| 2286 | e.preventDefault(); |
no outgoing calls
no test coverage detected