mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
Set MIME type for javascript files
This commit is contained in:
parent
06292a45f3
commit
70aed820da
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ def allroutes(pathin):
|
||||||
if fullpath.endswith(".css"):
|
if fullpath.endswith(".css"):
|
||||||
# some users may have invalid mime type in the Windows registry
|
# some users may have invalid mime type in the Windows registry
|
||||||
mimetype = "text/css"
|
mimetype = "text/css"
|
||||||
|
elif fullpath.endswith(".js"):
|
||||||
|
mimetype = "application/javascript"
|
||||||
else:
|
else:
|
||||||
# autodetect
|
# autodetect
|
||||||
mimetype = None
|
mimetype = None
|
||||||
|
|
Loading…
Reference in a new issue