Skip to content

Commit

Permalink
fixes chrome 66+ audio play jspsych#518
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw committed May 15, 2018
1 parent 66f21d9 commit 442fe05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jspsych.js
Original file line number Diff line number Diff line change
Expand Up @@ -2121,6 +2121,11 @@ jsPsych.pluginAPI = (function() {
}

module.audioContext = function(){
if(context !== null){
if(context.state !== 'running'){
context.resume();
}
}
return context;
}

Expand Down

0 comments on commit 442fe05

Please sign in to comment.