Commit be59d024 authored by Muhammadali's avatar Muhammadali

update version: 1.0.3

parent f2a7e041
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "1.0.2", "version": "1.0.3",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -95,7 +95,6 @@ const ModalPhoneNumpad = ({ ...@@ -95,7 +95,6 @@ const ModalPhoneNumpad = ({
}; };
const handleKeyUp = useCallback( const handleKeyUp = useCallback(
(event) => { (event) => {
console.log(event);
gameState.toggleCP(event); gameState.toggleCP(event);
}, },
[gameState.toggleCP], [gameState.toggleCP],
......
...@@ -4,14 +4,12 @@ import React, { useEffect, useState } from 'react'; ...@@ -4,14 +4,12 @@ import React, { useEffect, useState } from 'react';
import { intervalToDuration } from 'date-fns'; import { intervalToDuration } from 'date-fns';
const TimerUi = ({ reason, time }) => { const TimerUi = ({ reason, time }) => {
console.log(reason, time, 'dsahfhfghgf');
const boxDialer = window.BoxDialer; const boxDialer = window.BoxDialer;
const [dndTimer, setDndTimer] = useState(time); const [dndTimer, setDndTimer] = useState(time);
useEffect(() => { useEffect(() => {
if (reason !== 'free') { if (reason !== 'free') {
var intervalId = setInterval(() => { var intervalId = setInterval(() => {
console.log('ticking');
setDndTimer((prevCount) => prevCount + 1); setDndTimer((prevCount) => prevCount + 1);
}, 1000); }, 1000);
return () => clearInterval(intervalId); return () => clearInterval(intervalId);
......
...@@ -89,7 +89,6 @@ export class BoxDialer { ...@@ -89,7 +89,6 @@ export class BoxDialer {
} }
startTimer() { startTimer() {
console.log('start timer');
this.testTimer = setInterval(() => { this.testTimer = setInterval(() => {
this.timer.time = this.timer.time + 1; this.timer.time = this.timer.time + 1;
this.onSipStateChange.setDndTimer(this.timer.time); this.onSipStateChange.setDndTimer(this.timer.time);
...@@ -115,7 +114,6 @@ export class BoxDialer { ...@@ -115,7 +114,6 @@ export class BoxDialer {
if (bool) { if (bool) {
this.ringtone.pause(); this.ringtone.pause();
this.ringtone.remove(); this.ringtone.remove();
console.log(this.ringtone, 'sound ringtone');
this.ringtone.play(); this.ringtone.play();
} else { } else {
...@@ -193,7 +191,6 @@ export class BoxDialer { ...@@ -193,7 +191,6 @@ export class BoxDialer {
{ name: 'Organization', value: 'Technounit' }, { name: 'Organization', value: 'Technounit' },
], ],
}; };
console.log('ostackConfig: ', ostackConfig);
this.oSipStack = new SIPml.Stack(ostackConfig); this.oSipStack = new SIPml.Stack(ostackConfig);
if (this.oSipStack.start() !== 0) { if (this.oSipStack.start() !== 0) {
......
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