Repository navigation
Only handle target="_blank" links in the page script - #1
Merged
Merged
Conversation
The web process loaded Mesa's EGL next to NVIDIA's, which pulled Mesa's gallium and LLVM in, about 50 MB of resident memory. configureGraphics() points EGL at the NVIDIA vendor when its driver loads, and leaves the setting alone when the user has set one. configureMemoryPressure() sets WebKit's memory-pressure thresholds when DW_MEMORY_LIMIT_MB is set. It is off by default and was only used for measurement: it did not change the footprint at startup. The page script now intercepts only links with target="_blank". Every other link is left to the page, so external links that are not new windows navigate this window.
Keeps the link handling from the previous commit. The NVIDIA EGL selection and the DW_MEMORY_LIMIT_MB hook are taken out: the hook did not change the startup footprint, and the EGL change is not in this branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
target="_blank". Other links are left to the page._blanklinks to other sites still open in the default browser, and same-site_blanklinks still stay in the window.Behaviour change
Plain links to other sites (no
target="_blank") now navigate this window away from Discord instead of opening in the browser. This was a deliberate choice.Testing
node --check).🤖 Generated with Claude Code