Electron: jQuery is not defined

前端 未结 19 2731
我在风中等你
我在风中等你 2020-11-22 06:20

Problem: while developing using Electron, when you try to use any JS plugin that requires jQuery, the plugin doesn\'t find jQuery, even if you load in the correct path using

19条回答
  •  春和景丽
    2020-11-22 07:06

    You can put node-integration: false inside options on BrowserWindow.

    eg: window = new BrowserWindow({'node-integration': false});

提交回复
热议问题