src/styles.js
// injectStyle(text) - Add a stylesheet to the page's head
Add a stylesheet to the page's head
Add a stylesheet to the page ' s head
function injectStyle(text)
	{
		var style = document.createElement("style");
		style.setAttribute("type", "text/css");
		style.textContent = text;
		document.head.appendChild(style);
	}
function injectStyle ( text ) { var style = document . createElement ( "style" ) ; style . setAttribute ( "type" , "text/css" ) ; style . textContent = text ; document . head . appendChild ( style ) ; }
injectStyle(text) - Add a stylesheet to the page's head
injectStyle ( text ) - Add a stylesheet to the page ' s head