Commit e4d6e82f authored by Muhammadali's avatar Muhammadali

update-

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