mirror of
https://github.com/liriliri/eruda.git
synced 2026-02-02 09:49:00 +08:00
18 lines
363 B
JavaScript
18 lines
363 B
JavaScript
var mark = [];
|
|
|
|
function exports(css)
|
|
{
|
|
for (var i = 0, len = mark.length; i < len; i++)
|
|
{
|
|
if (mark[i] === css) return;
|
|
}
|
|
mark.push(css);
|
|
|
|
var container = exports.container || document.head,
|
|
style = document.createElement('style');
|
|
|
|
style.type = 'text/css';
|
|
style.textContent = css;
|
|
|
|
container.appendChild(style);
|
|
} |