Commit ba32fddb authored by Muhammadali's avatar Muhammadali

update-

parent c6fb74bd
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.8.26", "version": "4.8.27",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -10,22 +10,22 @@ import SecondNotifSip from '../components/SecondNotifSip'; ...@@ -10,22 +10,22 @@ import SecondNotifSip from '../components/SecondNotifSip';
import InnerCaller from '../components/InnerCaller'; import InnerCaller from '../components/InnerCaller';
import { contextModalEventProperty } from '../context/modalEventProperty'; import { contextModalEventProperty } from '../context/modalEventProperty';
// var no_active_delay = 60; var no_active_delay = 60;
// var now_no_active = 0; var now_no_active = 0;
// function activeUser() { function activeUser() {
// now_no_active = 0; now_no_active = 0;
// } }
// function updateChat() { function updateChat() {
// if (now_no_active >= no_active_delay) { if (now_no_active >= no_active_delay && !!modalState.bool) {
// location.reload(); location.reload();
// return; return;
// } }
// } }
// setInterval(() => { setInterval(() => {
// now_no_active++; now_no_active++;
// updateChat(); updateChat();
// }, 1000); }, 1000);
// document.onmousemove = activeUser; document.onmousemove = activeUser;
const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const [phoneModal, setPhoneModal] = useState(false); const [phoneModal, setPhoneModal] = useState(false);
...@@ -62,18 +62,13 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -62,18 +62,13 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
'innerCallerModal', 'innerCallerModal',
); );
if (boxDialer.isUaRunning()) { if (boxDialer.isUaRunning()) console.log('UA is running! in other tab');
console.log('UA is running! in other tab'); else boxDialer.sipRegister(wsphonedata);
} else {
boxDialer.sipRegister(wsphonedata);
}
setTimeout(function waitUaRegisterLost() { setTimeout(function waitUaRegisterLost() {
if (boxDialer.isUaRunning() || boxDialer.isRestarting) { if (boxDialer.isUaRunning() || boxDialer.isRestarting)
setTimeout(waitUaRegisterLost, 10); setTimeout(waitUaRegisterLost, 10);
} else { else boxDialer.sipRegister(wsphonedata);
boxDialer.sipRegister(wsphonedata);
}
}, 10); }, 10);
} }
}, []); }, []);
...@@ -132,6 +127,8 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -132,6 +127,8 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
} }
}; };
console.log('modalState_bool: ', modalState.bool);
console.log( console.log(
'wsphonedata_all_data: ', 'wsphonedata_all_data: ',
wsphonedata?.position, wsphonedata?.position,
......
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