Commit 9a75590c authored by Muhammadali's avatar Muhammadali

update-

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