Skip to content

Commit

Permalink
disable sound production when sim is not active, see phetsims/john-tr…
Browse files Browse the repository at this point in the history
…avoltage#309

(cherry picked from commit 2032a80)
  • Loading branch information
jbphet committed Oct 2, 2018
1 parent 79cf90f commit dcfbcf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ define( function( require ) {

// Initialize the sound library if enabled.
if ( this.supportsSound ) {
soundManager.initialize( this.browserTabVisibleProperty );
soundManager.initialize( this.browserTabVisibleProperty, this.activeProperty );
}

assert && assert( !window.phet.joist.sim, 'Only supports one sim at a time' );
Expand Down

0 comments on commit dcfbcf6

Please sign in to comment.