Commit 9ee0f200 authored by Muhammadali's avatar Muhammadali

update

parent 82df0fe4
{
"name": "boxdialer",
"version": "1.9.5",
"version": "1.9.6",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -12,34 +12,32 @@ const Root = ({ data, onSetDnd }) => {
let localValue = localStorage.getItem('activeValue') || false;
const [stateData, setStateData] = useState({});
// if (!data) {
// data = {
// iscloud: true,
// number: '4003',
// wsurl: 'cld.alovoice.uz:61040',
// server_id: 40,
// secret: '26a830',
// lefttime: 231461,
// reasons: ['free', 'outcalls', 'home', 'totop'],
// reason: 'free',
// variant: 'bxmini',
// position: 'bottomRight',
// };
// }
if (!data) {
data = {
iscloud: true,
number: '4003',
wsurl: 'cld.alovoice.uz:61040',
server_id: 40,
secret: '26a830',
lefttime: 231461,
reasons: ['free', 'outcalls', 'home', 'totop'],
reason: 'free',
variant: 'bxmini',
position: 'bottomRight',
};
}
// if (window?.alovoice_wsphone) {
// data = window.alovoice_wsphone;
// onSetDnd = window.alovoice_onsetdnd;
// }
if (window?.alovoice_wsphone) {
data = window.alovoice_wsphone;
onSetDnd = window.alovoice_onsetdnd;
}
useEffect(() => {
if (window?.alovoice_wsphone) {
// data = window.alovoice_wsphone;
setStateData(window.alovoice_wsphone);
onSetDnd = window.alovoice_onsetdnd;
if (data || window.alovoice_wsphone) {
setStateData(data);
}
}, [window?.alovoice_wsphone]);
console.log('stateData:', stateData);
}, [window?.alovoice_wsphone, data]);
console.log('stateData:', stateData, data);
const [phoneModal, setPhoneModal] = useState(false);
const [dynamicValue, setDynamicValue] = useState('pending');
......
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