From fbb607474bbd2584d8b0e8a7d7422b549845dbcf Mon Sep 17 00:00:00 2001 From: GenZerg <108889885+GenZerg@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:47:21 +0700 Subject: [PATCH] Revert "try to fix error" This reverts commit 7b23d6dc8c8c34151d08d6c316830bff3642604a. --- main-dev.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/main-dev.js b/main-dev.js index 1c5de1b..6a28239 100644 --- a/main-dev.js +++ b/main-dev.js @@ -1238,8 +1238,8 @@ class ARMMane{ spawnArea.appendChild(newPresetElement); }); } - - createPresetElement(presetName, steps) { + + createPresetElement(presetName) { const newPresetElement = this.elements["template"]["ins_preset"][0].cloneNode(true); const uniqueId = `preset_${presetName}`; newPresetElement.id = uniqueId; @@ -1249,12 +1249,6 @@ class ARMMane{ newPresetElement.style.display = "flex"; newPresetElement.setAttribute("data-preset-name", presetName); - const data = this.translateInstruction(steps); - newPresetElement.setAttribute("data-type", data.type); - newPresetElement.setAttribute("data-device", data.id); - newPresetElement.setAttribute("data-value", data.degree); - newPresetElement.setAttribute("data-speed", data.speed); - return newPresetElement; }