<script> const {ipcRenderer} = require('electron') document.cookie = "test=123" ipcRenderer.send('cookie-response', document.cookie) </script>