Quantcast
Channel: Electron: Using a module in the main process - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Erveon for Electron: Using a module in the main process

Found the answer,the proper way to use a module through the main process would be to use this:require('electron').remote.require('connection');

View Article


Electron: Using a module in the main process

I'm trying to use a module I made myself in the main process in Electron,but for some reason it doesn't work as intended (at all).In the main process (main.js), I define the moduleconst connection =...

View Article

Browsing all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>