2020-06-27 11:56:26 +02:00
|
|
|
|
2021-07-01 17:40:42 +02:00
|
|
|
function loadES5() {
|
2020-06-27 11:56:26 +02:00
|
|
|
var el = document.createElement('script');
|
2021-07-01 17:40:42 +02:00
|
|
|
el.src = '/api/hassio/app/frontend_es5/entrypoint.73a7016a.js';
|
2020-06-27 11:56:26 +02:00
|
|
|
document.body.appendChild(el);
|
|
|
|
}
|
2021-07-01 17:40:42 +02:00
|
|
|
if (/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent)) {
|
|
|
|
loadES5();
|
|
|
|
} else {
|
|
|
|
try {
|
|
|
|
new Function("import('/api/hassio/app/frontend_latest/entrypoint.2f52c331.js')")();
|
|
|
|
} catch (err) {
|
|
|
|
loadES5();
|
|
|
|
}
|
|
|
|
}
|
2020-06-27 11:56:26 +02:00
|
|
|
|