Commit e600c497 authored by Muhammadali's avatar Muhammadali

update-

parent d370b124
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "3.3.5", "version": "3.3.6",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -4,23 +4,23 @@ import Root from '../root'; ...@@ -4,23 +4,23 @@ import Root from '../root';
const ControlRenderBX = () => { const ControlRenderBX = () => {
const [wsphonedata, setWsphonedata] = useState({}); const [wsphonedata, setWsphonedata] = useState({});
console.log('boxdialer_wsphone_data: ', wsphonedata); console.log('boxdialer_wsphone_data: ', window.alovoice_wsphone);
useEffect(() => { useEffect(() => {
setWsphonedata(window.alovoice_wsphone); setWsphonedata(window.alovoice_wsphone);
if (!window.alovoice_wsphone) { // if (!window.alovoice_wsphone) {
setWsphonedata({ // setWsphonedata({
iscloud: true, // iscloud: true,
number: '2020', // number: '2020',
wsurl: 'cld.alovoice.uz:61040', // wsurl: 'cld.alovoice.uz:61040',
server_id: 40, // server_id: 40,
secret: '97bff7', // secret: '97bff7',
lefttime: 231461, // lefttime: 231461,
reasons: ['free', 'outcalls', 'home', 'totop'], // reasons: ['free', 'outcalls', 'home', 'totop'],
reason: 'free', // reason: 'free',
variant: 'bxmini', // variant: 'bxmini',
position: 'bottomRight', // position: 'bottomRight',
}); // });
} // }
}, []); }, []);
return ( return (
......
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