mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Allow theme's package.cson to leave off stylesheet extension
This commit is contained in:
@@ -16,7 +16,9 @@ class AtomTheme extends Theme
|
||||
if fs.isFile(metadataPath)
|
||||
stylesheetNames = CSON.readObject(metadataPath)?.stylesheets
|
||||
if stylesheetNames
|
||||
@loadStylesheet(fs.join(@path, name)) for name in stylesheetNames
|
||||
for name in stylesheetNames
|
||||
filename = fs.resolveExtension(fs.join(@path, name), ['.css', '.less', ''])
|
||||
@loadStylesheet(filename)
|
||||
else
|
||||
@loadStylesheet(stylesheetPath) for stylesheetPath in fs.list(@path, ['.css', '.less'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user