Commit 9a75590c authored by Muhammadali's avatar Muhammadali

update-

parent f5d49e2e
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.7.3", "version": "4.7.4",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -241,12 +241,7 @@ export class BoxDialer { ...@@ -241,12 +241,7 @@ export class BoxDialer {
} }
isUaRunning() { isUaRunning() {
console.log(
'isUaRunning: ==========---------------',
Boolean(typeof window.BX !== 'undefined'),
Boolean(window.localStorage.getItem(BX.bitrix_sessid() + '_mycall')),
Boolean(window.localStorage.getItem('mycall')),
);
return ( return (
Boolean(typeof window.BX !== 'undefined') && Boolean(typeof window.BX !== 'undefined') &&
Boolean(window.localStorage.getItem(BX.bitrix_sessid() + '_mycall')) && Boolean(window.localStorage.getItem(BX.bitrix_sessid() + '_mycall')) &&
......
...@@ -64,7 +64,12 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -64,7 +64,12 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
setInnerCallerModal, setInnerCallerModal,
'innerCallerModal', 'innerCallerModal',
); );
console.log(
'isUaRunning: ==========---------------',
Boolean(typeof window.BX !== 'undefined'),
Boolean(window.localStorage.getItem(BX.bitrix_sessid() + '_mycall')),
Boolean(window.localStorage.getItem('mycall')),
);
if (boxDialer.isUaRunning()) { if (boxDialer.isUaRunning()) {
console.log('UA is running! in other tab'); console.log('UA is running! in other tab');
} else { } 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