From 06605367ebdd614b099fa0e39ee6e87c09bd1322 Mon Sep 17 00:00:00 2001 From: SharkPool <139097378+SharkPool-SP@users.noreply.github.com> Date: Fri, 30 Aug 2024 23:41:06 -0700 Subject: [PATCH] Display-Text -- V1.4.4 --- extensions/SharkPool/Display-Text.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extensions/SharkPool/Display-Text.js b/extensions/SharkPool/Display-Text.js index 7c14f14568..5a9e188115 100644 --- a/extensions/SharkPool/Display-Text.js +++ b/extensions/SharkPool/Display-Text.js @@ -697,8 +697,7 @@ elements.forEach((element) => { element.style[args.ATT === "letter" ? "letterSpacing" : "lineHeight"] = `${args.SPACING}px`; }); - txtSettings[ID]["letDIS"] = { ID, SPACING : args.SPACING, ATT : "letter" }; - txtSettings[ID]["lineDIS"] = { ID, SPACING : args.SPACING, ATT : "line" }; + txtSettings[ID][args.ATT === "letter" ? "letDIS" : "lineDIS"] = { ...args, ID }; } presetTextPosition(args) { @@ -944,7 +943,6 @@ resetTxt(args) { delete txtSettings[this.fixID(args.ID)] } reuseStyle(args) { - const ID = this.fixID(args.ID2); this.updateStyles(txtSettings[this.fixID(args.ID)], this.fixID(args.ID2)); }