source: trip-planner-front/node_modules/style-loader/dist/runtime/styleTagTransform.js@ 6a3a178

Last change on this file since 6a3a178 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 */
4function 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
16module.exports = styleTagTransform;
Note: See TracBrowser for help on using the repository browser.