This repository was archived by the owner on Jun 22, 2025. It is now read-only.
Commit 65c1423
authored
Set JS mimetype (#289)
#49 #181 it seems like these issues weren't ever truly fixed.
It would be nice if Eel set the mimetypes on its own. According to pallets/flask#1045 this bug will happen for all Windows users.
The most common use for this would be to import JS modules. Chrome doesn't allow modules with incorrect mimetypes to be loaded without a registry edit.
mimetypes is a Python standard lib so there shouldn't be much impact.
Cheers!1 parent 7041a07 commit 65c1423
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
0 commit comments