What is the result of setting node integration to false when creating a new browser window in Electron?

In order to load jQuery and work correctly on the HTML page that I opened in Electron (formerly Atom Shell), I had to disable Node integration when creating a BrowserWindow in my main.js file.

Can someone please tell me which node-integration: false parameter will prevent me from doing what I would normally be able to do if I hadn't disabled it?

+7
electron
Apr 25 '15 at 2:22
source share
1 answer

Setting node integration to false will disable node.js during the rendering process - i.e. your application can only do what the web browser does. Instead, use Zepto.js, which is compatible with Electron and has the same API.

+5
Apr 25 '15 at 2:28
source share



All Articles