Commit 1d3e98cd authored by Muhammadali's avatar Muhammadali

update-

parent b656e29d
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.6.4", "version": "4.6.5",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -241,17 +241,17 @@ export class BoxDialer { ...@@ -241,17 +241,17 @@ export class BoxDialer {
} }
removeViExternalCard() { removeViExternalCard() {
if ( // if (
typeof BX !== 'undefined' && // typeof BX !== 'undefined' &&
window.localStorage.getItem(BX.bitrix_sessid() + '_mycall') && // window.localStorage.getItem(BX.bitrix_sessid() + '_mycall') &&
window.localStorage.getItem('mycall') // window.localStorage.getItem('mycall')
) { // ) {
BX?.localStorage?.remove('viExternalCard'); // BX?.localStorage?.remove('viExternalCard');
} else if (typeof BX !== 'undefined') { // } else if (typeof BX !== 'undefined') {
BX?.localStorage?.remove('viExternalCard'); // BX?.localStorage?.remove('viExternalCard');
} // }
} }
startTimer() { startTimer() {
......
...@@ -72,6 +72,8 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -72,6 +72,8 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
) { ) {
console.log('UA is running! in other tab'); console.log('UA is running! in other tab');
} else { } else {
if (typeof BX !== 'undefined')
BX?.localStorage?.remove('viExternalCard');
boxDialer.sipRegister(wsphonedata); boxDialer.sipRegister(wsphonedata);
} }
......
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