Answers for "ipcrenderer index.html"

0

ipcrenderer index.html

<!doctype html>
<html lang="en-US">
<head>
    <meta charset="utf-8"/>
    <title>Title</title>
</head>
<body>
    <script>
        window.api.response("fromMain", (data) => {
            console.log(`Received ${data} from main process`);
        });
        window.api.request("toMain", "some data");
    </script>
</body>
</html>
Posted by: Guest on July-21-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language