File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1711,14 +1711,8 @@ addToLibrary({
17111711 // input events on, and registers a context resume() for them. This lets
17121712 // audio work properly in an automatic way, as browsers won't let audio run
17131713 // without user interaction.
1714- // If @elements is not provided, we default to the document and canvas
1715- // elements, which handle common use cases.
1716- // TODO(sbc): Remove seemingly unused elements argument
1717- $autoResumeAudioContext__docs : '/** @param {Object=} elements */' ,
1718- $autoResumeAudioContext : ( ctx , elements ) = > {
1719- if ( ! elements ) {
1720- elements = [ document , document . getElementById ( 'canvas' ) ] ;
1721- }
1714+ $autoResumeAudioContext : ( ctx ) => {
1715+ var elements = [ document , document . getElementById ( 'canvas' ) ] ;
17221716 [ 'keydown' , 'mousedown' , 'touchstart' ] . forEach ( ( event ) => {
17231717 elements . forEach ( ( element ) => {
17241718 element ?. addEventListener ( event , ( ) => {
You can’t perform that action at this time.
0 commit comments