style-loader
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -9,5 +9,5 @@ /* | ||
} | ||
var styleElement = document.createElement("style"); | ||
var styleElement = document.createElement("style"), | ||
head = document.head || document.getElementsByTagName("head")[0]; | ||
styleElement.type = "text/css"; | ||
var head = document.getElementsByTagName("head")[0]; | ||
head.appendChild(styleElement); | ||
@@ -28,6 +28,13 @@ if (styleElement.styleSheet) { | ||
} else { | ||
head.removeChild(styleElement); | ||
dispose(); | ||
} | ||
}; | ||
} else { | ||
// For the useable API, provide a function to remove the stylesheet. | ||
return dispose; | ||
} | ||
} | ||
function dispose() { | ||
head.removeChild(styleElement); | ||
} | ||
}; |
{ | ||
"name": "style-loader", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -5,0 +5,0 @@ "description": "style loader module for webpack", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6465
143