mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-28 09:01:33 +03:00
Guard against null core.themes
This commit is contained in:
parent
62f44e64f4
commit
e93d83dcdf
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user