mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 21:36:36 +00:00
Add service worker registration back
This commit is contained in:
parent
5c1cf2a66a
commit
dcd9fd16f3
@ -26,3 +26,9 @@ if (window.noAuth) {
|
|||||||
} else {
|
} else {
|
||||||
window.hassConnection = null;
|
window.hassConnection = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
window.addEventListener('load', function () {
|
||||||
|
navigator.serviceWorker.register('/service_worker.js');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user