rollbar-php-wordpress icon indicating copy to clipboard operation
rollbar-php-wordpress copied to clipboard

rollbar_js_config not working with ignoredMessages

Open fliespl opened this issue 3 years ago • 0 comments

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;
});

fliespl avatar Apr 30 '22 20:04 fliespl