ankit / stylebot

Change the appearance of the web instantly
https://stylebot.dev/
MIT License
1.41k stars 208 forks source link

[Bug] Add filetype filter to import styles file dialog #708

Closed bantza closed 2 years ago

bantza commented 2 years ago

Describe the bug

When importing styles with sync > import file dialog no filetype is defined.

Browser

Chrome Version 103.0.5060.114 (Official Build) (64-bit)

To Reproduce

Steps to reproduce the behavior:

Expected behavior

File list in choose file dialog is filtered to only include importable file types.

Fix

Add fileInput.accept = "application/json"; to stylebot/src/options/utils.ts on row 102.