sindresorhus/electron-unhandled

Register it automatically on new browser windows

Open

#1 aberto em 15 de mai. de 2017

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (464 stars) (27 forks)user submission
enhancementhelp wanted

Description

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.

Guia do colaborador