Fingerprint charts (#883)

* Fingerprint charts URL

* cache in service worker
This commit is contained in:
Paulus Schoutsen
2018-02-11 09:01:17 -08:00
committed by GitHub
parent b6ad4edd32
commit 4c5d85746c
7 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
<link rel='import' href='../../../bower_components/polymer/polymer-element.html'>
<link rel='import' href='../../resources/ha-chart-scripts.html'>
<dom-module id="ha-chart-base">
<template>
@@ -148,7 +147,7 @@
if (!SCRIPT_LOADED) {
Polymer.importHref(
`${window.HASS_ROOT}/ha-chart-scripts.html`,
window.CHART_SCRIPT,
() => {
SCRIPT_LOADED = true;
this.onPropsChange();