What's the outcome of setting node-integration to false when creating a new browser window in Electron?

前端 未结 1 734
天命终不由人
天命终不由人 2021-02-19 23:50

In order to get jQuery to load and function correctly in a HTML page I was opening in Electron (formerly Atom Shell), I had to disable Node integration when creating the B

1条回答
  •  萌比男神i
    2021-02-20 00:02

    Setting node-integration to false will disable node.js in the renderer process - i.e. your app can only do what a web browser will do. Instead of doing this, use Zepto.js which is compatible with Electron and has the same API.

    0 讨论(0)
提交回复
热议问题