name worker as ente worker

This commit is contained in:
Abhinav-grd 2021-09-07 17:18:36 +05:30
parent dbe871c2eb
commit c38de745c9

View file

@ -22,7 +22,8 @@ export interface B64EncryptionResult {
export const getDedicatedCryptoWorker = (): ComlinkWorker => {
if (runningInBrowser()) {
const worker = new Worker(
new URL('worker/crypto.worker.js', import.meta.url)
new URL('worker/crypto.worker.js', import.meta.url),
{ name: 'ente-worker' }
);
const comlink = Comlink.wrap(worker);
return { comlink, worker };