Skip to content

Commit

Permalink
Improve onUpdate example
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed Sep 23, 2023
1 parent 9aa22b9 commit 2df7254
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ $(() => {
width: "600px",
height: "375px"
},
onUpdate: event => {
console.log("On update:");
console.log(JSON.stringify(event));
onUpdate: ({ uploadedFiles, pendingFiles }) => {
const uploadedFileUrls = uploadedFiles.map(x => x.fileUrl).join("\n");
console.log(uploadedFileUrls);
},
onComplete: files => {
if (files.length === 0) {
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"@wdio/spec-reporter": "^7.19.1",
"babel-loader": "8.2.3",
"babel-plugin-transform-async-to-promises": "0.8.15",
"chromedriver": "^115.0.0",
"chromedriver": "^117.0.0",
"enzyme": "3.11.0",
"eslint": "7.32.0",
"eslint-config-prettier": "6.15.0",
Expand Down

0 comments on commit 2df7254

Please sign in to comment.