docs: fix a syntax issue in document breaking changes (#44841)
fix: syntax issue in docs
This commit is contained in:
parent
d8149aa376
commit
4e40b49d1a
1 changed files with 2 additions and 2 deletions
|
@ -128,14 +128,14 @@ The nonstandard `path` property of the Web `File` object was added in an early v
|
||||||
```js
|
```js
|
||||||
// Before (renderer)
|
// 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}`)
|
alert(`Uploaded file path was: ${file.path}`)
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// After (renderer)
|
// After (renderer)
|
||||||
|
|
||||||
const file = document.querySelector('input[type=file]')
|
const file = document.querySelector('input[type=file]').files[0]
|
||||||
electron.showFilePath(file)
|
electron.showFilePath(file)
|
||||||
|
|
||||||
// (preload)
|
// (preload)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue