diff --git a/worker/worker-plotly.js b/worker/worker-plotly.js index 3c7a6be2a6235b82088e394cbd7e7f68e3993fd5..505cb1e630b2bccd04a1d6f0578972a7465c020b 100644 --- a/worker/worker-plotly.js +++ b/worker/worker-plotly.js @@ -190,5 +190,7 @@ } } })( - typeof exports === 'undefined' ? module.exports : exports + typeof exports === 'undefined' + ? self + : exports ) diff --git a/worker/worker.js b/worker/worker.js index e60464fa3767e866b123e99e84c81c920cf340a1..cd05c6ae4d954567cbf8411f2df2247269896065 100644 --- a/worker/worker.js +++ b/worker/worker.js @@ -7,7 +7,7 @@ globalThis.constants = { vtkHeader } -if (typeof self.importScripts === 'function') self.importScripts('./worker-second.js') +if (typeof self.importScripts === 'function') self.importScripts('./worker-plotly.js') /** * TODO migrate processing functionalities to other scripts