Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rollbar_js_config not working with ignoredMessages #107

Open
fliespl opened this issue Apr 30, 2022 · 0 comments
Open

rollbar_js_config not working with ignoredMessages #107

fliespl opened this issue Apr 30, 2022 · 0 comments
Assignees

Comments

@fliespl
Copy link

fliespl commented Apr 30, 2022

Posisbly because it's rendered as object instead of array?

Returned in config:

"ignoredMessages":{"0":"ResizeObserver loop limit exceeded","1":"Script error."}}

Filter:

add_filter('rollbar_js_config', function($config) {
        $config['ignoredMessages'] = [
                'ResizeObserver loop limit exceeded',
                'Script error.',
        ];
        return $config;
});
@danielmorell danielmorell self-assigned this Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants