title: Electron js use desktopCapture outside main.js
body: <p>I have an app where I need to capture the Desktop on Button click. All relevent tutorials on YouTube are 1-2 years old. The desktopCapturer module is only available in main component, and I cannot figure out how to use it from there to capture the button click and start recording. Earlier the desktopCapturer module was also available in render component, as I have heard, but now it is only available on main component.</p>