refactor(core): add version in worker url (#11614)

Co-authored-by: renovate <29139614+renovate@users.noreply.github.com>
This commit is contained in:
liuyi
2025-04-10 19:12:49 +08:00
committed by GitHub
parent a6ddfdd85e
commit e79e4c9e9b
9 changed files with 15 additions and 18 deletions

View File

@@ -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;

View File

@@ -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;