Skip to content

Commit d168286

Browse files
committed
2.3.8 simplify 86d0669
1 parent f0da3ff commit d168286

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Stylus",
3-
"version": "2.3.7",
3+
"version": "2.3.8",
44
"description": "Redesign the web with Stylus, a user styles manager",
55
"license": "GPL-3.0-only",
66
"repository": "openstyles/stylus",

src/background/style-manager/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ export function getCore({id, code, sections, size, vars} = {}) {
216216
style.sections = tmp;
217217
if (!code)
218218
style.sourceCode = undefined;
219-
if (!vars && (tmp = style[UCD]))
220-
style[UCD] = {...tmp, vars: tmp.vars ? {} : undefined};
219+
if (!vars && (tmp = style[UCD]) && tmp.vars)
220+
style[UCD] = {...tmp, vars: {}};
221221
res.push(style);
222222
}
223223
return id ? res[0] : res;

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Stylus",
3-
"version": "2.3.7",
3+
"version": "2.3.8",
44
"minimum_chrome_version": "",
55
"description": "__MSG_description__",
66
"homepage_url": "https://add0n.com/stylus.html",

0 commit comments

Comments
 (0)