Commit c6fb74bd authored by Muhammadali's avatar Muhammadali

update-

parent 72858189
{
"name": "boxdialer",
"version": "4.8.25",
"version": "4.8.26",
"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) {
// location.reload();
// return;
// }
// }
// setInterval(() => {
// now_no_active++;
// updateChat();
// }, 1000);
// document.onmousemove = activeUser;
const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const [phoneModal, setPhoneModal] = useState(false);
......@@ -61,6 +61,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
setInnerCallerModal,
'innerCallerModal',
);
if (boxDialer.isUaRunning()) {
console.log('UA is running! in other tab');
} else {
......
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