Skip to content

Commit

Permalink
Ensure argument to Path.extname is a string.
Browse files Browse the repository at this point in the history
This may be throwing errors under more recent versions of Node.

Fixes #59.
  • Loading branch information
oggy committed Jan 19, 2017
1 parent 6766f63 commit 058e09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tab-list-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class TabListView
label.classList[action]('modified')
@disposable.add tab.item.onDidChangeModified(toggleModified)
toggleModified()
path = tab.item.getPath()
path = tab.item.getPath() ? ''
icon = makeElement('span', {class: 'icon icon-file-text', 'data-name': Path.extname(path)})
dir = if path then projectRelativePath(path) else ''
sublabelText = document.createTextNode(dir)
Expand Down

0 comments on commit 058e09c

Please sign in to comment.