Commit b29f255b authored by Muhammadali's avatar Muhammadali

update

parent a18b227c
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.1.2", "version": "2.1.3",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -21,14 +21,15 @@ const ControlRenderBX = () => { ...@@ -21,14 +21,15 @@ const ControlRenderBX = () => {
}; };
console.log('check_data', data); console.log('check_data', data);
switch (typeEnvironments) { // switch (typeEnvironments) {
case 'bitrix': // 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} />; return <Root setData={setData} data={data} />;
case 'cloud':
return <Root setData={setData} data={data} />;
default:
return <Root setData={setData} data={data} />;
}
}; };
export default ControlRenderBX; export default ControlRenderBX;
...@@ -53,13 +53,14 @@ const Root = ({ data, onSetDnd, setData }) => { ...@@ -53,13 +53,14 @@ const Root = ({ data, onSetDnd, setData }) => {
boxDialer.setSipStateChangeCallback(setSecondLine, 'secondLine'); boxDialer.setSipStateChangeCallback(setSecondLine, 'secondLine');
boxDialer.sipRegister(data); boxDialer.sipRegister(data);
} }
setData(data); // setData(data);
}, []); }, []);
const hangupButton = () => { const hangupButton = () => {
boxDialer.hangupButtonClick(); boxDialer.hangupButtonClick();
}; };
window.setWSData = (result) => { window.setWSData = (result) => {
console.log('window_setWSData');
setData(result); setData(result);
}; };
const reasonSelect = async (e) => { 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