From b33ea0d72d1f57842bbb6e48ee7603aec321eda0 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2024 07:12:11 -0600 Subject: [PATCH] docs: fix a syntax issue in document breaking changes (#44905) 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> --- docs/breaking-changes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/breaking-changes.md b/docs/breaking-changes.md index d8dcb2e98ec..bc42543d94f 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)