Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/leadin/scripts/lib
File: Raven.ts
import Raven from 'raven-js';
[0] Fix | Delete
import {
[1] Fix | Delete
hubspotBaseUrl,
[2] Fix | Delete
phpVersion,
[3] Fix | Delete
wpVersion,
[4] Fix | Delete
leadinPluginVersion,
[5] Fix | Delete
portalId,
[6] Fix | Delete
plugins,
[7] Fix | Delete
} from '../constants/leadinConfig';
[8] Fix | Delete
[9] Fix | Delete
export function configureRaven() {
[10] Fix | Delete
if (hubspotBaseUrl.indexOf('app.hubspot.com') === -1) {
[11] Fix | Delete
return;
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
Raven.config(
[15] Fix | Delete
'https://e9b8f382cdd130c0d415cd977d2be56f@exceptions.hubspot.com/1',
[16] Fix | Delete
{
[17] Fix | Delete
instrument: {
[18] Fix | Delete
tryCatch: false,
[19] Fix | Delete
},
[20] Fix | Delete
release: leadinPluginVersion,
[21] Fix | Delete
}
[22] Fix | Delete
).install();
[23] Fix | Delete
[24] Fix | Delete
Raven.setTagsContext({
[25] Fix | Delete
v: leadinPluginVersion,
[26] Fix | Delete
php: phpVersion,
[27] Fix | Delete
wordpress: wpVersion,
[28] Fix | Delete
});
[29] Fix | Delete
[30] Fix | Delete
Raven.setExtraContext({
[31] Fix | Delete
hub: portalId,
[32] Fix | Delete
plugins: Object.keys(plugins)
[33] Fix | Delete
.map(name => `${name}#${plugins[name]}`)
[34] Fix | Delete
.join(','),
[35] Fix | Delete
});
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
export default Raven;
[39] Fix | Delete
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function