renderer.js 663 B

12345678910111213141516
  1. /**
  2. * This file is loaded via the <script> tag in the index.html file and will
  3. * be executed in the renderer process for that window. No Node.js APIs are
  4. * available in this process because `nodeIntegration` is turned off and
  5. * `contextIsolation` is turned on. Use the contextBridge API in `preload.js`
  6. * to expose Node.js functionality from the main process.
  7. */
  8. const designButton = document.getElementById('btnDesign')
  9. designButton.addEventListener('click', () => {
  10. window.electronAPI.startDesign();
  11. });
  12. const invokeButton = document.getElementById('btnInvoke')
  13. invokeButton.addEventListener('click', () => {
  14. window.electronAPI.startInvoke();
  15. });