Commit 3dc27a34 authored by Muhammadali's avatar Muhammadali

verison:0.0.7

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