Use previously assigned styleElement.textContent

This commit is contained in:
confused-Techie 2023-07-02 12:56:43 -07:00
parent a2a2a063b7
commit 3f65a38da0

View File

@ -160,11 +160,9 @@ module.exports = class StyleManager {
}
}
if (params.skipDeprecatedMathUsageTransformation) {
styleElement.textContent = source;
} else {
if (!params.skipDeprecatedMathUsageTransformation) {
const transformed = this.upgradeDeprecatedMathUsageForStyleSheet(
source,
styleElement.textContent,
params.context
);
styleElement.textContent = transformed.source;