Skip to content

Commit 2b77ab2

Browse files
authored
fix(devtools): accept json file in import fileinput (#22717)
1 parent 2db6d6a commit 2b77ab2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export default function ProfilingImportExportButtons() {
122122
ref={inputRef}
123123
className={styles.Input}
124124
type="file"
125+
accept=".json"
125126
onChange={
126127
selectedTabID === 'timeline'
127128
? importTimelineDataWrapper

packages/react-devtools-timeline/src/ImportButton.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default function ImportButton({children = null, onFileSelect}: Props) {
4646
ref={inputRef}
4747
className={styles.Input}
4848
type="file"
49+
accept=".json"
4950
onChange={handleFiles}
5051
tabIndex={-1}
5152
/>

0 commit comments

Comments
 (0)