Repository navigation
fix(renderer): clear applied custom CSS when preference is emptied - #5659
Closed
woahwhattheheck wants to merge 1 commit into
Closed
woahwhattheheck wants to merge 1 commit into
woahwhattheheck wants to merge 1 commit into
Conversation
addCustomStyle returned early on the empty string before reaching the #custom-styles node, leaving the previous stylesheet active after clearing. Handle the explicit empty case by removing the node.
Member
|
Why submit the same PR? |
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.
app.vuewatches thecustomCsspreference and callsaddCustomStyleon change. The preference defaults to the empty string; previouslyaddCustomStylereturned atif (!customCss)before touching the#custom-stylesnode, so clearing the preference left the old stylesheet applied. The new branch handles the explicit empty string first and removes the node.Verification: postimage
theme.ts(7,955 bytes, blob91fe3751) reconstructed from the pinned preimageb9405317at develop0d8dba02; patch is one hunk, +4 lines. No runtime execution performed.Compensation request
Please register this submission under issue #375's advertised IssueHunt funding for whatever scope the maintainers award; acceptance and payment per IssueHunt's ordinary process.