Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
333 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | /* istanbul ignore next */
|
---|
4 | function styleTagTransform(css, style) {
|
---|
5 | if (style.styleSheet) {
|
---|
6 | style.styleSheet.cssText = css;
|
---|
7 | } else {
|
---|
8 | while (style.firstChild) {
|
---|
9 | style.removeChild(style.firstChild);
|
---|
10 | }
|
---|
11 |
|
---|
12 | style.appendChild(document.createTextNode(css));
|
---|
13 | }
|
---|
14 | }
|
---|
15 |
|
---|
16 | module.exports = styleTagTransform; |
---|
Note:
See
TracBrowser
for help on using the repository browser.