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/elemento.../MeetingW...
File: registerMeetingWidget.ts
import ReactDOM from 'react-dom';
[0] Fix | Delete
import MeetingControlController from './MeetingControlController';
[1] Fix | Delete
import MeetingWidgetController from './MeetingWidgetController';
[2] Fix | Delete
[3] Fix | Delete
export interface IMeetingAttributes {
[4] Fix | Delete
url: string;
[5] Fix | Delete
}
[6] Fix | Delete
[7] Fix | Delete
export default class registerMeetingsWidget {
[8] Fix | Delete
widgetContainer: Element;
[9] Fix | Delete
controlContainer: Element;
[10] Fix | Delete
setValue: Function;
[11] Fix | Delete
attributes: IMeetingAttributes;
[12] Fix | Delete
[13] Fix | Delete
constructor(controlContainer: any, widgetContainer: any, setValue: Function) {
[14] Fix | Delete
const attributes = widgetContainer.dataset.attributes
[15] Fix | Delete
? JSON.parse(widgetContainer.dataset.attributes)
[16] Fix | Delete
: {};
[17] Fix | Delete
[18] Fix | Delete
this.widgetContainer = widgetContainer;
[19] Fix | Delete
this.controlContainer = controlContainer;
[20] Fix | Delete
this.setValue = setValue;
[21] Fix | Delete
this.attributes = attributes;
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
render() {
[25] Fix | Delete
ReactDOM.render(
[26] Fix | Delete
MeetingWidgetController(this.attributes, this.setValue)(),
[27] Fix | Delete
this.widgetContainer
[28] Fix | Delete
);
[29] Fix | Delete
[30] Fix | Delete
ReactDOM.render(
[31] Fix | Delete
MeetingControlController(this.attributes, this.setValue)(),
[32] Fix | Delete
this.controlContainer
[33] Fix | Delete
);
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
done() {
[37] Fix | Delete
ReactDOM.unmountComponentAtNode(this.widgetContainer);
[38] Fix | Delete
ReactDOM.unmountComponentAtNode(this.controlContainer);
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function