fixed wsl shell provider

This commit is contained in:
Eugene Pankov
2020-02-09 18:01:57 +01:00
parent 6132881b8a
commit 72a024c713

View File

@@ -99,9 +99,7 @@ export class WSLShellProvider extends ShellProvider {
TERM: 'xterm-color', TERM: 'xterm-color',
COLORTERM: 'truecolor', COLORTERM: 'truecolor',
}, },
} icon: wslIconMap[name],
if (wslIconMap.hasOwnProperty(name)) {
shell['icon'] = require(`../icons/${wslIconMap[name]}`)
} }
shells.push(shell) shells.push(shell)
} }