mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix mimetypes on borked Windows machines (#25018)
This commit is contained in:
parent
0b7a901c81
commit
b11171aaeb
@ -1,6 +1,7 @@
|
|||||||
"""Handle the frontend for Home Assistant."""
|
"""Handle the frontend for Home Assistant."""
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
import mimetypes
|
||||||
import os
|
import os
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
@ -20,6 +21,13 @@ from homeassistant.loader import bind_hass
|
|||||||
|
|
||||||
from .storage import async_setup_frontend_storage
|
from .storage import async_setup_frontend_storage
|
||||||
|
|
||||||
|
|
||||||
|
# Fix mimetypes for borked Windows machines
|
||||||
|
# https://github.com/home-assistant/home-assistant-polymer/issues/3336
|
||||||
|
mimetypes.add_type("text/css", ".css")
|
||||||
|
mimetypes.add_type("application/javascript", ".js")
|
||||||
|
|
||||||
|
|
||||||
DOMAIN = 'frontend'
|
DOMAIN = 'frontend'
|
||||||
CONF_THEMES = 'themes'
|
CONF_THEMES = 'themes'
|
||||||
CONF_EXTRA_HTML_URL = 'extra_html_url'
|
CONF_EXTRA_HTML_URL = 'extra_html_url'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user