File tree 5 files changed +371
-10
lines changed
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:
8
8
2 . ** plotly.js**
9
9
- License: MIT License
10
10
- 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 8
8
// |_| | |_ //
9
9
// Website: https://feascript.com/ \__| //
10
10
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" ;
12
14
import { basicLog } from "./utilities/utilitiesScript.js" ;
13
15
14
16
export class FEAWorkerScript {
Original file line number Diff line number Diff line change 8
8
// |_| | |_ //
9
9
// Website: https://feascript.com/ \__| //
10
10
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" ;
12
14
import { FEAScriptModel } from "./FEAScript.js" ;
13
15
import { create , all } from "https://cdn.jsdelivr.net/npm/mathjs@latest/+esm" ;
14
16
Original file line number Diff line number Diff line change 11
11
export { FEAScriptModel } from "./FEAScript.js" ;
12
12
export { plotSolution } from "./visualization/plotSolutionScript.js" ;
13
13
export { 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