Skip to content

Commit 3a88fbf

Browse files
committed
Update error syntax
1 parent c891f4a commit 3a88fbf

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

index.js

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,26 @@ const colors = {
2222
lightCyan: '#9aedfe',
2323
lightWhite: '#e6e6e6',
2424
};
25-
const termCSS = (config) => `
26-
${config.termCSS || ''}
27-
`;
28-
const css = (config) => `
29-
${config.css || ''}
30-
.tabs_list .tab_tab.tab_active .tab_text {
31-
background: ${backgroundColor};
32-
}
3325

34-
.tab_active:before {
35-
border-color: ${borderColor};
36-
}
37-
`;
38-
39-
exports.decorateConfig = (config) =>
40-
Object.assign({}, config, {
26+
exports.decorateConfig = (config) => {
27+
return Object.assign({}, config, {
4128
backgroundColor,
4229
foregroundColor,
4330
borderColor,
4431
cursorColor,
4532
colors,
46-
termCSS,
47-
css,
33+
termCSS: `
34+
${config.termCSS || ''}
35+
`,
36+
css: `
37+
${config.css || ''}
38+
.tabs_list .tab_tab.tab_active .tab_text {
39+
background: ${backgroundColor};
40+
}
41+
42+
.tab_active:before {
43+
border-color: ${borderColor};
44+
}
45+
`,
4846
});
47+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hyper-dracula",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"main": "index.js",
55
"homepage": "https://draculatheme.com/hyper",
66
"description": "A dark theme for Hyper",

0 commit comments

Comments
 (0)