From 439d5580f3a72d3c7c3d800af19c9ef92862ccf0 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Sat, 14 Nov 2020 20:10:46 +1100 Subject: [PATCH] Add worker to public directory --- package.json | 2 +- web/src/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ea70fa9..73244fe 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "scripts": { "comment": "Rather crude approach to move ts definitions into the public folder so the browser can grab them later in CascadeMain.js", - "move-ts-defs": "cp ./node_modules/opencascade.js/dist/opencascade.d.ts ./web/public && cp ./node_modules/three/src/Three.d.ts ./web/public && cp ./web/src/cascade/js/StandardLibraryIntellisense.ts ./web/public" + "move-ts-defs": "cp ./node_modules/opencascade.js/dist/opencascade.d.ts ./web/public && cp ./node_modules/three/src/Three.d.ts ./web/public && cp ./web/src/cascade/js/StandardLibraryIntellisense.ts ./web/public && cp ./web/src/cascade/js/CADWorker/CascadeStudioMainWorker.js ./web/public" }, "devDependencies": { "@redwoodjs/core": "^0.19.2" diff --git a/web/src/index.html b/web/src/index.html index 7f50ea9..4ba987e 100644 --- a/web/src/index.html +++ b/web/src/index.html @@ -29,7 +29,7 @@ // Begins loading the CAD Kernel Web Worker if (window.Worker) { - cascadeStudioWorker = new Worker('/src/cascade/js/CADWorker/CascadeStudioMainWorker.js'); + cascadeStudioWorker = new Worker('/CascadeStudioMainWorker.js'); // Ping Pong Messages Back and Forth based on their registration in messageHandlers // var messageHandlers = {}; cascadeStudioWorker.onmessage = function (e) {