|
@@ -248,11 +248,11 @@ export class FlacAdapter extends AbstractAudioContextAdapter {
|
248
|
248
|
// only when flac recording is in use.
|
249
|
249
|
try {
|
250
|
250
|
// try load the minified version first
|
251
|
|
- this._encoder = new Worker('/libs/flacEncodeWorker.min.js');
|
|
251
|
+ this._encoder = new Worker('/libs/flacEncodeWorker.min.js', { name: 'FLAC encoder worker' });
|
252
|
252
|
} catch (exception1) {
|
253
|
253
|
// if failed, try unminified version
|
254
|
254
|
try {
|
255
|
|
- this._encoder = new Worker('/libs/flacEncodeWorker.js');
|
|
255
|
+ this._encoder = new Worker('/libs/flacEncodeWorker.js', { name: 'FLAC encoder worker' });
|
256
|
256
|
} catch (exception2) {
|
257
|
257
|
throw new Error('Failed to load flacEncodeWorker.');
|
258
|
258
|
}
|