Ignore ResizeObserver loop limit exceeded error (#5838)

This commit is contained in:
Bram Kragten 2020-05-12 12:17:41 +02:00 committed by GitHub
parent f85cf0a238
commit 96ab057853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,11 @@ window.hassConnection.then(({ conn }) => {
});
window.addEventListener("error", (e) => {
if (!__DEV__ && e.message === "ResizeObserver loop limit exceeded") {
e.stopImmediatePropagation();
e.stopPropagation();
return;
}
const homeAssistant = document.querySelector("home-assistant") as any;
if (
homeAssistant &&