mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
this required the following: - downgrading nx react (19 -> 18.2) - .npmrc credentials for fontawesome - installing a lot of nx plugins from the vanilla config - removing kalidokit vendored code and all references to it
13 lines
280 B
JavaScript
13 lines
280 B
JavaScript
onconnect = function (event) {
|
|
console.log('worker loaded');
|
|
|
|
const port = event.ports[0];
|
|
|
|
port.onmessage = function (e) {
|
|
console.log('worker message received');
|
|
const workerResult = `Result: ${e.data[0] * e.data[1]}`;
|
|
port.postMessage(workerResult);
|
|
};
|
|
};
|
|
|