Skip to content

Commit

Permalink
fix thing
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Aug 27, 2024
1 parent 1b655ec commit c538f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/SharkPool/Display-Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@
elements.forEach((element) => {
if (effect === "rotate" || effect.includes("scale") || effect.includes("skew")) {
const thisElement = effect === "rotate" ? element : element.parentNode;
const transformV = element.style.transform.split(" ");
const transformV = thisElement.style.transform.split(" ");
const index = transformV.findIndex(value => value.includes(effect));
if (index !== -1) {
effectValue = transformV[index].replace(/[^\d.-]/g, "");
Expand Down

0 comments on commit c538f74

Please sign in to comment.