Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 663e592

Browse files
bitspilldryajov
authored andcommitted
docs(examples): Ensure started prior to adding file (#912)
1 parent ba89d0a commit 663e592

File tree

1 file changed

+4
-0
lines changed
  • examples/transfer-files/public/js

1 file changed

+4
-0
lines changed

examples/transfer-files/public/js/app.js

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ function onDrop (event) {
114114
onDragExit()
115115
$errors.className = 'hidden'
116116
event.preventDefault()
117+
if (!node) {
118+
onError('IPFS must be started before files can be added')
119+
return
120+
}
117121
const dt = event.dataTransfer
118122
const files = dt.files
119123

0 commit comments

Comments
 (0)