mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 02:16:16 +00:00
added workaround for MIME type error in certain Windows installs
This commit is contained in:
parent
0c6fbf5507
commit
900001efaf
|
@ -12,6 +12,11 @@ from deemix.api.deezer import Deezer
|
|||
from deemix.app.MessageInterface import MessageInterface
|
||||
from deemix.utils import localpaths
|
||||
|
||||
# Workaround for MIME type error in certain Windows installs
|
||||
# https://github.com/pallets/flask/issues/1045#issuecomment-42202749
|
||||
import mimetypes
|
||||
mimetypes.add_type('text/css', '.css')
|
||||
mimetypes.add_type('text/javascript', '.js')
|
||||
|
||||
class CustomFlask(Flask):
|
||||
jinja_options = Flask.jinja_options.copy()
|
||||
|
|
Loading…
Reference in a new issue