Created
May 30, 2014 21:45
Revisions
-
gfranko created this gist
May 30, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ // Handle customCSS option if (typeof options.customCSS === 'string') { page.evaluate(function(customCSS) { var style = document.createElement('style'); var text = document.createTextNode(customCSS); style.setAttribute('type', 'text/css'); style.appendChild(text); document.head.insertBefore(style, document.head.firstChild); }, options.customCSS); }