11 lines
298 B
HTML
11 lines
298 B
HTML
|
<!DOCTYPE html>
|
||
|
|
||
|
<script type="module">
|
||
|
import * as Comlink from "https://unpkg.com/comlink/dist/esm/comlink.mjs";
|
||
|
// import * as Comlink from "../../../../dist/esm/comlink.mjs";
|
||
|
function add(a, b) {
|
||
|
return a + b;
|
||
|
}
|
||
|
Comlink.expose(add, Comlink.windowEndpoint(self.parent));
|
||
|
</script>
|