8000 refs #35: set default icon on windows. · nullptr0-0/leetcode-cli@fcbaf14 · GitHub
[go: up one dir, main page]

Skip to content

Commit fcbaf14

Browse files
committed
refs skygragon#35: set default icon on windows.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent 6233e30 commit fcbaf14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/icon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ var icons = {
1212
};
1313

1414
icons.setTheme = function(name) {
15-
var theme = this.themes[name] || this.themes.default || {};
15+
var defaultName = process.platform === 'win32' ? 'win7' : 'default';
16+
var theme = this.themes[name] || this.themes[defaultName] || {};
1617
_.extendOwn(this, theme);
1718
};
1819

0 commit comments

Comments
 (0)
0