Skip to content

Commit

Permalink
Revert "try to fix error"
Browse files Browse the repository at this point in the history
This reverts commit 7b23d6d.
  • Loading branch information
GenZerg committed Oct 16, 2023
1 parent aacf84d commit fbb6074
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions main-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit fbb6074

Please sign in to comment.