Commit 3dc27a34 authored by Muhammadali's avatar Muhammadali

verison:0.0.7

parent 0b6161dc
Pipeline #238 canceled with stages
{
"name": "boxdialer",
"version": "0.0.6",
"version": "0.0.7",
"description": "",
"main": "index.js",
"scripts": {
......
......@@ -105,12 +105,15 @@ export class BoxDialer {
}
onSoundType({ type, bool }) {
console.log(this.ringtone, 'sound');
if (this.played) {
switch (type) {
case 'ring':
if (bool) {
this.ringtone.pause();
this.ringtone.remove();
console.log(this.ringtone, 'sound ringtone');
this.ringtone.play();
} else {
......@@ -122,6 +125,7 @@ export class BoxDialer {
if (bool) {
this.waitRingTone.pause();
this.waitRingTone.remove();
console.log(this.waitRingTone, 'sound waitRingTone');
this.waitRingTone.play();
} else {
......@@ -133,6 +137,7 @@ export class BoxDialer {
if (bool) {
this.pickSound.remove();
this.pickSound.pause();
console.log(this.pickSound, 'sound pickSound');
this.pickSound.play();
} else {
......
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