name worker as ente worker
This commit is contained in:
parent
dbe871c2eb
commit
c38de745c9
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue