mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
removing second lookup in requireStylesheet
This commit is contained in:
@@ -72,10 +72,7 @@ windowAdditions =
|
||||
requireStylesheet: (path) ->
|
||||
if fullPath = require.resolve(path)
|
||||
window.applyStylesheet(fullPath, fs.read(fullPath))
|
||||
for theme in atom.loadedThemes
|
||||
for themePath, css of theme.stylesheets
|
||||
matched = true if themePath.match(path)
|
||||
unless fullPath || matched
|
||||
unless fullPath
|
||||
throw new Error("Could not find a file at path '#{path}'")
|
||||
|
||||
removeStylesheet: (path) ->
|
||||
|
||||
Reference in New Issue
Block a user