diff --git a/qt/aqt/mediasrv.py b/qt/aqt/mediasrv.py index 8c5d8c91f..be5a2d1bb 100644 --- a/qt/aqt/mediasrv.py +++ b/qt/aqt/mediasrv.py @@ -131,6 +131,8 @@ def allroutes(pathin): if fullpath.endswith(".css"): # some users may have invalid mime type in the Windows registry mimetype = "text/css" + elif fullpath.endswith(".js"): + mimetype = "application/javascript" else: # autodetect mimetype = None