sindresorhus/electron-unhandled

Register it automatically on new browser windows

开放

#1 创建于 2017年5月15日

 (0 条评论) (0 个反应) (0 位负责人)JavaScript (27 个派生)user submission
enhancementhelp wanted

仓库指标

星标
 (464 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Would be nice to have an opt-in option to have it register the handler on all new browser windows.

Could do something like this:

app.on('browser-window-created', (e, win) => {
  win.webContents.executeJavaScript('');
});

And execute some JS that includes it.

贡献者指南