Skip to content

Conversation

@mvicari
Copy link
Contributor

@mvicari mvicari commented Sep 8, 2025

  • Import shell module from Electron for external URL handling
  • Add setWindowOpenHandler to intercept new window creation attempts
  • Add will-navigate event handler to manage navigation within current window
  • External links (outside grok.com/x.com domains) now open in default browser
  • Internal Grok navigation continues to work normally within the app
  • Preserves login flow functionality for x.com/login URLs

This improves user experience by keeping the app focused on Grok while allowing external content to open in the user's preferred browser.

Tested successfully on Windows with both development and production builds.

- Import shell module from Electron for external URL handling
- Add setWindowOpenHandler to intercept new window creation attempts
- Add will-navigate event handler to manage navigation within current window
- External links (outside grok.com/x.com domains) now open in default browser
- Internal Grok navigation continues to work normally within the app
- Preserves login flow functionality for x.com/login URLs

This improves user experience by keeping the app focused on Grok while
allowing external content to open in the user's preferred browser.

Tested successfully on Windows with both development and production builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant