Guard against undefined labels

This commit is contained in:
Matt Colyer
2013-11-19 11:57:59 -08:00
parent ab74d8be38
commit 82e3935ae3

View File

@@ -73,6 +73,8 @@ class MenuManager
# Private
normalizeLabel: (label) ->
return undefined unless label?
if process.platform is 'win32'
label.replace(/\&/g, '')
else