Commit 477a4823 authored by Muhammadali's avatar Muhammadali

update verison: 0.5.8

parent 1f1f869f
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "0.5.7", "version": "0.5.8",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -225,7 +225,10 @@ export class BoxDialer { ...@@ -225,7 +225,10 @@ export class BoxDialer {
} }
setGuiPhoneState({ stateCode, funcName, funcParam }) { setGuiPhoneState({ stateCode, funcName, funcParam }) {
if (typeof window?.BX24 !== 'undefined') { if (
typeof window?.BX24 !== 'undefined' ||
typeof window?.BX !== 'undefined'
) {
let uiState = ''; let uiState = '';
switch (stateCode) { switch (stateCode) {
...@@ -415,7 +418,7 @@ export class BoxDialer { ...@@ -415,7 +418,7 @@ export class BoxDialer {
// toast.error('Please enter another number'); // toast.error('Please enter another number');
// return; // return;
// } // }
console.log('initialized argument', phoneNumber);
this.callBxMethods({ this.callBxMethods({
bxMethodName: 'CallCardSetUiState', bxMethodName: 'CallCardSetUiState',
bxFuncParams: { uiState: 'connectingOutgoing' }, bxFuncParams: { uiState: 'connectingOutgoing' },
......
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