Skip to content

Commit

Permalink
Last minute bug fix in StyleManager Changes
Browse files Browse the repository at this point in the history
Odd this wasn't caught in our initial specs. But this issue only effects specs, as the actual production code is able to assign the callback with a function reference rather than a string which is then used to assign the callback itself.
  • Loading branch information
confused-Techie committed Apr 16, 2024
1 parent 84608dc commit 31d7d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/style-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ module.exports = class StyleManager {
// Allows us to utilize a direct callback, or if calling from outside
// StyleManager we can define a string that works
if (upgradeName === "math") {
cb = upgradeDeprecatedMathUsageForStyleSheet;
cb = transformDeprecatedMathUsage;
} else if (upgradeName === "selector") {
cb = transformDeprecatedShadowDOMSelectors;
} else if (typeof upgradeName === "function") {
Expand Down

0 comments on commit 31d7d84

Please sign in to comment.