mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Guard against null core.themes
This commit is contained in:
@@ -11,7 +11,7 @@ class ThemePackage extends AtomPackage
|
||||
getStylesheetType: -> 'theme'
|
||||
|
||||
enable: ->
|
||||
themes = atom.config.get('core.themes')
|
||||
themes = atom.config.get('core.themes') ? []
|
||||
themes.unshift(@metadata.name)
|
||||
atom.config.set('core.themes', themes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user