Created
February 8, 2022 15:33
-
-
Save petyosi/42da5d76912f8a1cab266a4d33277019 to your computer and use it in GitHub Desktop.
Ignores error caused by nested resizing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("error", (e) => { | |
if ( | |
e.message === | |
"ResizeObserver loop completed with undelivered notifications." || | |
e.message === "ResizeObserver loop limit exceeded" | |
) { | |
e.stopImmediatePropagation(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment