From 3d3590bf19fa48b5bb7da3369d8a868bb74d7322 Mon Sep 17 00:00:00 2001 From: Xiao Gui <xgui3783@gmail.com> Date: Fri, 5 Feb 2021 12:39:11 +0100 Subject: [PATCH] updated ref to worker --- spec/karma.conf.js | 2 +- src/atlasViewer/atlasViewer.workerService.service.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/karma.conf.js b/spec/karma.conf.js index cff56013d..76c12d0cb 100644 --- a/spec/karma.conf.js +++ b/spec/karma.conf.js @@ -37,7 +37,7 @@ module.exports = function(config) { included: true }, { - pattern: './src/util/worker.js', + pattern: './worker/worker.js', served: true, included: false }, diff --git a/src/atlasViewer/atlasViewer.workerService.service.ts b/src/atlasViewer/atlasViewer.workerService.service.ts index 98dea2564..45ca6fd9a 100644 --- a/src/atlasViewer/atlasViewer.workerService.service.ts +++ b/src/atlasViewer/atlasViewer.workerService.service.ts @@ -4,7 +4,8 @@ import { filter, take } from "rxjs/operators"; import { getUuid } from "src/util/fn"; /* telling webpack to pack the worker file */ -import '../util/worker.js' +import '../../worker/worker.js' +import '../../worker/worker-plotly.js' /** * export the worker, so that services that does not require dependency injection can import the worker -- GitLab