Repository navigation
fix(desktop): remove applied custom CSS when the preference is cleared - #5633
Merged
Jocs merged 2 commits intoOct 6, 2026
Conversation
Handle the explicit empty-string customCss value before the existing early return so the #custom-styles node is removed when the preference is cleared.
Jocs
requested changes
Oct 6, 2026
Jocs
approved these changes
Oct 6, 2026
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.
Refs #375 (scoped renderer fix; not the general plugin/theme architecture the issue discusses).
The renderer watches the customCss preference and calls addCustomStyle when it changes. Previously, falsy customCss values returned before reaching the #custom-styles node, so clearing applied CSS left the old stylesheet active in the running window.
The current change consolidates removal into the existing falsy-value guard as requested in review: if customCss is falsy, remove #custom-styles when present and return. Nonempty CSS keeps the existing create/replace path. No preference, dependency or IPC surface changes.
Verification: exact current source at e738cf2, with the consolidated falsy-value branch and unchanged nonempty path inspected. No Electron/DOM execution, typecheck or test suite was run.
Original-contributor compensation request
This merged PR is the canonical original
@woahwhattheheckimplementation submitted for IssueHunt-funded issue #375. I request recognition of this contribution, confirmation of eligibility and allocation from the current provider-displayed $30 funded pool, confirmation of the payable amount, and the payout or withdrawal steps and timing.Please keep compensation attached to this merged carrier, #5633. PR #5659 was closed as a duplicate and should not replace this canonical contribution record. Provider allocation, award, invoice, settlement, and received payment remain distinct records to confirm through the applicable IssueHunt process.
IssueHunt Summary