Skip to content

Commit f0f7221

Browse files
committed
Renamed a few things
1 parent 0ef28eb commit f0f7221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/chains/return.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = exports =
1212

1313
page.evaluate(evalFn, resultFn, options.cssExpose, stylesheets)
1414

15-
inject: (page, options, stylesheets, finalCSS, next) ->
15+
exposeStylesheets: (page, options, stylesheets, finalCSS, next) ->
1616
evalFn = (name, stylesheets) ->
1717
script = document.createElement("script")
1818
script.innerHTML = "var #{name} = #{JSON.stringify(stylesheets)};"
@@ -23,7 +23,7 @@ module.exports = exports =
2323

2424
page.evaluate(evalFn, resultFn, options.cssExpose, stylesheets)
2525

26-
inject: (page, options, stylesheets, finalCSS, next) ->
26+
removeStylesheetsAndInjectUsedStyles: (page, options, stylesheets, finalCSS, next) ->
2727
evalFn = (options, stylesheets, finalCSS) ->
2828
links = document.querySelectorAll("link[rel='stylesheet']")
2929
linkForHref = (href) ->

0 commit comments

Comments
 (0)