[dev] Mute flood wait error alerts (#6138)

This commit is contained in:
zubiden 2025-08-21 12:05:09 +02:00 committed by Alexander Zinchuk
parent 322b0defc0
commit c0dbdc35a0

View File

@ -44,9 +44,16 @@ export function handleError(err: Error) {
}
function handleErrorEvent(e: ErrorEvent | PromiseRejectionEvent) {
// https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded
if (e instanceof ErrorEvent && e.message === 'ResizeObserver loop limit exceeded') {
return;
if (e instanceof ErrorEvent) {
// https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded
if (e.message === 'ResizeObserver loop limit exceeded') {
return;
}
// Flood wait errors
if (e.message.includes('A wait of')) {
return;
}
}
e.preventDefault();