Skip to content

Commit

Permalink
Fix: Ignore ResizeObserver error
Browse files Browse the repository at this point in the history
  • Loading branch information
SecSimon committed Aug 2, 2023
1 parent cdea8db commit 1ec9615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/util/messages.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class MessagesService {
constructor(private snackBar: MatSnackBar, private translateService: TranslateService,
private locStorage: LocalStorageService, public dialog: MatDialog) {
window.onerror = (msg, source, line, col, err) => {
if (!msg.toString().startsWith('ResizeObserver loop limit')) this.Error(msg.toString(), [source, line, col, err]);
if (!msg.toString().startsWith('ResizeObserver loop')) this.Error(msg.toString(), [source, line, col, err]);
return false;
};
}
Expand Down

0 comments on commit 1ec9615

Please sign in to comment.