docs: fix a syntax issue in document breaking changes (#44904)

fix: syntax issue in docs

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: illusory-dream <37270118+illusory-dream@users.noreply.github.com>
This commit is contained in:
trop[bot] 2024-12-01 07:11:48 -06:00 committed by GitHub
parent 8c3b2e7b9d
commit e76893eaed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -107,14 +107,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)