chrome.developerPrivate.openDevTools({
        renderViewId: -1,
        renderProcessId: -1,
        extensionId: chrome.runtime.id
    });

  加在 bg-script 首部

 

global是nodejs的顶层对象,在nw.js里global是所有窗口共享的。

  

相关文章:

  • 2021-11-02
  • 2021-12-09
  • 2021-08-10
  • 2022-12-23
  • 2021-10-21
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-19
  • 2021-10-04
  • 2021-12-27
  • 2021-09-11
  • 2021-07-06
  • 2021-06-11
相关资源
相似解决方案