Skip to content

Commit

Permalink
limit image picker to images
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibenner committed Aug 6, 2021
1 parent 09427d5 commit cdbd810
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/controlPanel/ControlPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default function ControlPanel() {
onInput={() => loadDecal()}
ref={inputRef}
type="file"
accept="image/*"
/>
</Card>
<Card title="Background">
Expand Down Expand Up @@ -137,6 +138,7 @@ export default function ControlPanel() {
ref={customBgRef}
style={{ display: "none" }}
type="file"
accept="image/*"
onChange={(data) =>
setBackgroundImage({
data: data.target.files[0],
Expand Down

0 comments on commit cdbd810

Please sign in to comment.