Commit ba32fddb authored by Muhammadali's avatar Muhammadali

update-

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