diff --git a/docs/breaking-changes.md b/docs/breaking-changes.md index d8dcb2e98ec5..bc42543d94f1 100644 --- a/docs/breaking-changes.md +++ b/docs/breaking-changes.md @@ -111,14 +111,14 @@ The nonstandard `path` property of the Web `File` object was added in an early v ```js // Before (renderer) -const file = document.querySelector('input[type=file]') +const file = document.querySelector('input[type=file]').files[0] alert(`Uploaded file path was: ${file.path}`) ``` ```js // After (renderer) -const file = document.querySelector('input[type=file]') +const file = document.querySelector('input[type=file]').files[0] electron.showFilePath(file) // (preload)