You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
preload scripts are being injected into _blank windows #6991
My app loads a BrowserWindow at custom://foo/bar. This window creation has a script preload.
That window has an tag (to an http link) that loads on a _blank target. If that is clicked, the new window automatically also uses the same preload.
Activity
MarshallOfSound commentedon Aug 26, 2016
@koush Yes this is by design.
A preload script assigned to a
BrowserWindowor aWebViewwill always run on every page load before all scripts on that page.koush commentedon Aug 26, 2016
@MarshallOfSound Thanks, that makes sense.
Is there any way to override the behavior of clicking a _blank a tag link?
I tried to replace window.open with no luck.
koush commentedon Aug 26, 2016
Found the answer, thanks
http://electron.atom.io/docs/api/web-contents/#event-new-window