Commit b2120e96 authored by Muhammadali's avatar Muhammadali

update-2.2.5

parent 93fc2d61
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.2.4", "version": "2.2.5",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -7,20 +7,24 @@ const ControlRenderBX = () => { ...@@ -7,20 +7,24 @@ const ControlRenderBX = () => {
const [typeEnvironments, setTypeEnvironments] = useState('none'); const [typeEnvironments, setTypeEnvironments] = useState('none');
var intervalFetchToBx; var intervalFetchToBx;
useEffect(() => { // useEffect(() => {
intervalFetchToBx = setInterval(intervalFunc, 1000); // intervalFetchToBx = setInterval(intervalFunc, 1000);
console.log('intervalFetchToBx'); // console.log('intervalFetchToBx');
}, []); // }, []);
// const intervalFunc = () => {
// if (!Boolean(wsphonedata?.number)) {
// setWsphonedata(window.alovoice_wsphone);
// }
// if (Boolean(wsphonedata?.number)) {
// clearInterval(intervalFetchToBx);
// intervalFetchToBx = null;
// }
// };
const intervalFunc = () => { useEffect(() => {
if (!Boolean(wsphonedata?.number)) {
setWsphonedata(window.alovoice_wsphone); setWsphonedata(window.alovoice_wsphone);
} }, []);
if (Boolean(wsphonedata?.number)) {
clearInterval(intervalFetchToBx);
intervalFetchToBx = null;
}
};
const testFunc = (e) => { const testFunc = (e) => {
console.log('dsadasdsd', e); console.log('dsadasdsd', 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