Commit b29f255b authored by Muhammadali's avatar Muhammadali

update

parent a18b227c
{
"name": "boxdialer",
"version": "2.1.2",
"version": "2.1.3",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -21,14 +21,15 @@ const ControlRenderBX = () => {
};
console.log('check_data', data);
switch (typeEnvironments) {
case 'bitrix':
return <Root setData={setData} data={data} />;
case 'cloud':
return <Root setData={setData} data={data} />;
default:
return <Root setData={setData} data={data} />;
}
// switch (typeEnvironments) {
// case 'bitrix':
// return <Root setData={setData} data={data} />;
// case 'cloud':
// return <Root setData={setData} data={data} />;
// default:
// return <Root setData={setData} data={data} />;
// }
return <Root setData={setData} data={data} />;
};
export default ControlRenderBX;
......@@ -53,13 +53,14 @@ const Root = ({ data, onSetDnd, setData }) => {
boxDialer.setSipStateChangeCallback(setSecondLine, 'secondLine');
boxDialer.sipRegister(data);
}
setData(data);
// setData(data);
}, []);
const hangupButton = () => {
boxDialer.hangupButtonClick();
};
window.setWSData = (result) => {
console.log('window_setWSData');
setData(result);
};
const reasonSelect = async (e) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment