mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(core): add version in worker url (#11614)
Co-authored-by: renovate <29139614+renovate@users.noreply.github.com>
This commit is contained in:
@@ -7,7 +7,7 @@ export class PDFRenderer extends OpClient<ClientOps> {
|
||||
private readonly worker: Worker;
|
||||
|
||||
constructor() {
|
||||
const worker = new Worker(getWorkerUrl('pdf.worker.js'));
|
||||
const worker = new Worker(getWorkerUrl('pdf'));
|
||||
super(worker);
|
||||
|
||||
this.worker = worker;
|
||||
|
||||
@@ -10,7 +10,7 @@ export function getWorkspaceProfileWorker() {
|
||||
return worker;
|
||||
}
|
||||
|
||||
const rawWorker = new Worker(getWorkerUrl('workspace-profile.worker.js'));
|
||||
const rawWorker = new Worker(getWorkerUrl('workspace-profile'));
|
||||
|
||||
worker = new OpClient<WorkerOps>(rawWorker);
|
||||
return worker;
|
||||
|
||||
Reference in New Issue
Block a user