Toggle also returns promise

This commit is contained in:
Aziz Khambati 2019-07-30 18:19:10 +05:30
parent aa51719a55
commit d771da9abf

View File

@ -371,7 +371,7 @@ class Plyr {
return;
}
this.media.pause();
return this.media.pause();
}
/**
@ -411,9 +411,9 @@ class Plyr {
const toggle = is.boolean(input) ? input : !this.playing;
if (toggle) {
this.play();
return this.play();
} else {
this.pause();
return this.pause();
}
}