From 9a75590c0bbe823583ad1a0b9e63ef80a5f7acc9 Mon Sep 17 00:00:00 2001
From: Muhammadali <mukhammadali.ubaydullayev.05@inbox.ru>
Date: Fri, 13 Oct 2023 17:32:14 +0500
Subject: [PATCH] update-

---
 package.json         | 2 +-
 src/lib/boxDIaler.js | 7 +------
 src/root/index.jsx   | 7 ++++++-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/package.json b/package.json
index 239f375..c270bc9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
 	"name": "boxdialer",
-	"version": "4.7.3",
+	"version": "4.7.4",
 	"description": "",
 	"main": "src/boxDialer.js",
 	"scripts": {
diff --git a/src/lib/boxDIaler.js b/src/lib/boxDIaler.js
index 4f850d2..3ad1274 100644
--- a/src/lib/boxDIaler.js
+++ b/src/lib/boxDIaler.js
@@ -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')) &&
diff --git a/src/root/index.jsx b/src/root/index.jsx
index 1b34a7c..dc1e22b 100644
--- a/src/root/index.jsx
+++ b/src/root/index.jsx
@@ -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 {
-- 
2.21.0