Skip to content

Commit

Permalink
docs: change normal to arrow functions in File object docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Moisés Neto committed Oct 31, 2018
1 parent b44b34e commit b5968c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/api/file-object.md
Expand Up @@ -15,15 +15,15 @@ Example of getting a real path from a dragged-onto-the-app file:
</div>

<script>
document.addEventListener('drop', function (e) {
document.addEventListener('drop', (e) => {
e.preventDefault();
e.stopPropagation();
for (let f of e.dataTransfer.files) {
for (const f of e.dataTransfer.files) {
console.log('File(s) you dragged here: ', f.path)
}
});
document.addEventListener('dragover', function (e) {
document.addEventListener('dragover', (e) => {
e.preventDefault();
e.stopPropagation();
});
Expand Down

0 comments on commit b5968c5

Please sign in to comment.