mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Guard against undefined labels
This commit is contained in:
@@ -73,6 +73,8 @@ class MenuManager
|
||||
|
||||
# Private
|
||||
normalizeLabel: (label) ->
|
||||
return undefined unless label?
|
||||
|
||||
if process.platform is 'win32'
|
||||
label.replace(/\&/g, '')
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user