File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,20 @@ export const createAddAudioWorkletModule: TAddAudioWorkletModuleFactory = (
125125 }
126126
127127 promise
128- . then ( ( ) => {
129- const updatedResolvedRequestsOfContext = resolvedRequests . get ( context ) ;
128+ . then (
129+ ( ) => {
130+ const updatedResolvedRequestsOfContext = resolvedRequests . get ( context ) ;
130131
131- if ( updatedResolvedRequestsOfContext === undefined ) {
132- resolvedRequests . set ( context , new Set ( [ moduleURL ] ) ) ;
133- } else {
134- updatedResolvedRequestsOfContext . add ( moduleURL ) ;
132+ if ( updatedResolvedRequestsOfContext === undefined ) {
133+ resolvedRequests . set ( context , new Set ( [ moduleURL ] ) ) ;
134+ } else {
135+ updatedResolvedRequestsOfContext . add ( moduleURL ) ;
136+ }
137+ } ,
138+ ( ) => {
139+ // Ignore errors.
135140 }
136- } )
141+ )
137142 . finally ( ( ) => {
138143 const updatedOngoingRequestsOfContext = ongoingRequests . get ( context ) ;
139144
You can’t perform that action at this time.
0 commit comments