Skip to content

Commit

Permalink
2.3.8 simplify 86d0669
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Jan 19, 2025
1 parent f0da3ff commit c96b795
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Stylus",
"version": "2.3.7",
"version": "2.3.8",
"description": "Redesign the web with Stylus, a user styles manager",
"license": "GPL-3.0-only",
"repository": "openstyles/stylus",
Expand Down
4 changes: 2 additions & 2 deletions src/background/style-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export function getCore({id, code, sections, size, vars} = {}) {
style.sections = tmp;
if (!code)
style.sourceCode = undefined;
if (!vars && (tmp = style[UCD]))
style[UCD] = {...tmp, vars: tmp.vars ? {} : undefined};
if (!vars && (tmp = style[UCD]) && tmp.vars)
style[UCD] = {...tmp, vars: {}};
res.push(style);
}
return id ? res[0] : res;
Expand Down
4 changes: 2 additions & 2 deletions src/manage/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ const ENTRY_ROUTES = {
setHocus($('#message-box-buttons > button'), false);
},

'.configure-usercss'(event, {styleMeta}) {
configDialog(styleMeta[UCD].vars ? styleMeta.id : styleMeta);
'.configure-usercss'(event, {styleId}) {
configDialog(styleId);
},

[SEL_EXPANDER]: expandTargets,
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Stylus",
"version": "2.3.7",
"version": "2.3.8",
"minimum_chrome_version": "",
"description": "__MSG_description__",
"homepage_url": "https://add0n.com/stylus.html",
Expand Down

0 comments on commit c96b795

Please sign in to comment.