Skip to content

Commit

Permalink
return promises for harker.suspend() and harker.resume()
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeg0 committed May 9, 2018
1 parent 2a27a58 commit 0965160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hark.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ module.exports = function(stream, options) {
harker.speaking = false;

harker.suspend = function() {
audioContext.suspend();
return audioContext.suspend();
}
harker.resume = function() {
audioContext.resume();
return audioContext.resume();
}
Object.defineProperty(harker, 'state', { get: function() {
return audioContext.state;
Expand Down

0 comments on commit 0965160

Please sign in to comment.