ha-frontend/src/html/_js_base.html.template

25 lines
810 B
Plaintext
Raw Normal View History

<script>
function _ls(src) {
var doc = document.documentElement;
var script = doc.insertBefore(
document.createElement("script"),
doc.lastChild
);
2019-07-10 18:27:25 +02:00
script.defer = true;
script.src = src;
2020-05-23 08:05:47 +02:00
return script;
}
window.Polymer = {
lazyRegister: true,
useNativeCSSProperties: true,
dom: "shadow",
suppressTemplateNotifications: true,
suppressBindingNotifications: true,
};
2019-07-10 18:27:25 +02:00
if (!("customElements" in window &&
"content" in document.createElement("template"))) {
2019-07-21 21:20:37 +02:00
document.write("<script src='/static/polyfills/webcomponents-bundle.js'><"+"/script>");
}
var isS101 = /\s+Version\/10\.1(?:\.\d+)?\s+Safari\//.test(navigator.userAgent);
</script>