mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 05:16:34 +00:00
Add service worker registration back
This commit is contained in:
parent
5c1cf2a66a
commit
dcd9fd16f3
@ -26,3 +26,9 @@ if (window.noAuth) {
|
||||
} else {
|
||||
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