1<!doctype html>
2<html lang="en-US">
3<head>
4 <meta charset="utf-8"/>
5 <title>Title</title>
6</head>
7<body>
8 <script>
9 window.api.response("fromMain", (data) => {
10 console.log(`Received ${data} from main process`);
11 });
12 window.api.request("toMain", "some data");
13 </script>
14</body>
15</html>
16