sindresorhus/electron-unhandled

Register it automatically on new browser windows

Open

#1 ouverte le 15 mai 2017

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)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.

Guide contributeur