Commit 1d3e98cd authored by Muhammadali's avatar Muhammadali

update-

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