Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
289 B
10 lines
289 B
4 years ago
|
export default function WebWorker() {
|
||
|
// @ts-ignore
|
||
|
const ctx: Worker = this as any;
|
||
|
|
||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||
|
const onmessage = (e: MessageEvent) => {
|
||
|
console.log("ww got message")
|
||
|
ctx.postMessage("Response");
|
||
|
};
|
||
|
}
|