mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use packages to load themes
This commit is contained in:
@@ -67,6 +67,7 @@ window.atom =
|
||||
return pack if pack = @getLoadedPackage(name)
|
||||
pack = Package.load(packagePath, options)
|
||||
@loadedPackages[pack.name] = pack
|
||||
@themes.register(pack) if pack.metadata.theme?
|
||||
pack
|
||||
else
|
||||
throw new Error("Could not resolve '#{name}' to a package path")
|
||||
|
||||
Reference in New Issue
Block a user