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
306 B
10 lines
306 B
<script type="module">
|
|
import * as Comlink from "/base/dist/esm/comlink.mjs";
|
|
|
|
const parentEndpoint = Comlink.windowEndpoint(self.parent);
|
|
const wrappedParent = Comlink.wrap(parentEndpoint);
|
|
|
|
Comlink.expose(async (a, b) => {
|
|
return a + (await wrappedParent(b));
|
|
}, parentEndpoint);
|
|
</script>
|
|
|