Add object-assign polyfill support to polymer (#5994)
* Add object-assign polyfill support to polymer * Conditionally load compatibility.js * Remove compatibility preload * Include newly compiled files * Update compiled frontend with latest polymer
This commit is contained in:
1 parent
30ad8bcc80
commit
2993a4a7a5
33 files changed
+49
-30
No files matched your search
@@ -235,10 +235,14 @@ class IndexView(HomeAssistantView):
|
||||
|
||||
if request.app[KEY_DEVELOPMENT]:
|
||||
core_url = '/static/home-assistant-polymer/build/core.js'
|
||||
compatibility_url = \
|
||||
'/static/home-assistant-polymer/build/compatibility.js'
|
||||
ui_url = '/static/home-assistant-polymer/src/home-assistant.html'
|
||||
else:
|
||||
core_url = '/static/core-{}.js'.format(
|
||||
FINGERPRINTS['core.js'])
|
||||
compatibility_url = '/static/compatibility-{}.js'.format(
|
||||
FINGERPRINTS['compatibility.js'])
|
||||
ui_url = '/static/frontend-{}.html'.format(
|
||||
FINGERPRINTS['frontend.html'])
|
||||
|
||||
@@ -268,7 +272,8 @@ class IndexView(HomeAssistantView):
|
||||
# pylint: disable=no-member
|
||||
# This is a jinja2 template, not a HA template so we call 'render'.
|
||||
resp = template.render(
|
||||
core_url=core_url, ui_url=ui_url, no_auth=no_auth,
|
||||
core_url=core_url, ui_url=ui_url,
|
||||
compatibility_url=compatibility_url, no_auth=no_auth,
|
||||
icons_url=icons_url, icons=FINGERPRINTS['mdi.html'],
|
||||
panel_url=panel_url, panels=hass.data[DATA_PANELS])
|
||||
|
||||
|
||||
Reference in new issue
Block a user