File tree Expand file tree Collapse file tree 5 files changed +371
-10
lines changed
Expand file tree Collapse file tree 5 files changed +371
-10
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,9 @@ FEAScript makes use of the following third-party software:
882 . ** plotly.js**
99 - License: MIT License
1010 - Source: https://github.com/plotly/plotly.js/tree/master
11- - License: https://github.com/plotly/plotly.js/blob/master/LICENSE
11+ - License: https://github.com/plotly/plotly.js/blob/master/LICENSE
12+
13+ 3 . ** Comlink**
14+ - License: Apache 2.0 License
15+ - Source: https://github.com/GoogleChromeLabs/comlink
16+ - License: https://github.com/GoogleChromeLabs/comlink/blob/main/LICENSE
Original file line number Diff line number Diff line change 88// |_| | |_ //
99// Website: https://feascript.com/ \__| //
1010
11- import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs" ;
11+ // import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs";
12+ // The Web Worker functionality now uses the local Comlink library to avoid CORS issues
13+ import * as Comlink from "./vendor/comlink.mjs" ;
1214import { basicLog } from "./utilities/utilitiesScript.js" ;
1315
1416export class FEAWorkerScript {
Original file line number Diff line number Diff line change 88// |_| | |_ //
99// Website: https://feascript.com/ \__| //
1010
11- import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs" ;
11+ // import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs";
12+ // The Web Worker functionality now uses the local Comlink library to avoid CORS issues
13+ import * as Comlink from "./vendor/comlink.mjs" ;
1214import { FEAScriptModel } from "./FEAScript.js" ;
1315import { create , all } from "https://cdn.jsdelivr.net/npm/mathjs@latest/+esm" ;
1416
Original file line number Diff line number Diff line change 1111export { FEAScriptModel } from "./FEAScript.js" ;
1212export { plotSolution } from "./visualization/plotSolutionScript.js" ;
1313export { printVersion , logSystem } from "./utilities/utilitiesScript.js" ;
14-
15- // Temporarily commenting out the worker export to avoid CORS issues
16- // The Web Worker functionality relies on the Comlink library which is currently causing CORS errors:
17- // - Error: "Loading module from 'https://unpkg.com/comlink/dist/esm/comlink.mjs' was blocked because of a disallowed MIME type ('text/html')"
18- // - Error: "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource"
19- //
20- // export { FEAWorkerScript } from "./FEAWorkerScript.js";
14+ export { FEAWorkerScript } from "./FEAWorkerScript.js" ;
You can’t perform that action at this time.
0 commit comments