Commit e4d6e82f authored by Muhammadali's avatar Muhammadali

update-

parent c35d5620
{
"name": "boxdialer",
"version": "4.8.1",
"version": "4.8.2",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -85,7 +85,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
// '==========------------reg_checking: ',
// boxDialer.isUaRunning(),
// );
if (boxDialer.isUaRunning() || this.isRestarting) {
if (boxDialer.isUaRunning() || boxDialer.isRestarting) {
setTimeout(waitUaRegisterLost, 10);
} else {
boxDialer.sipRegister(wsphonedata);
......@@ -157,7 +157,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
window.onbeforeunload = () => {
if (typeof BX !== 'undefined') {
this.isRestarting = true;
boxDialer.isRestarting = true;
console.log('window_onbeforeunload =============-------------');
localStorage.removeItem('mycall');
localStorage.removeItem(BX.bitrix_sessid() + '_mycall');
......
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