Skip to content

Commit 3a92409

Browse files
authored
sound-editor.jsx -- forgot that the old api used textarea for some reason
1 parent 7510439 commit 3a92409

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/containers/sound-editor.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,13 +522,13 @@ class SoundEditor extends React.Component {
522522
{ name: "Cancel", callback: () => audio.close() },
523523
);
524524

525-
menu.textarea.style = "margin: 0 10px 0 10px;position: relative;display: flex;justify-content: flex-end;flex-direction: row;height: calc(100% - (3.125em + 2.125em + 16px));align-items: center;";
526-
menu.textarea.append(pitchDiv, volumeDiv);
525+
menu.style = "margin: 0 10px 0 10px;position: relative;display: flex;justify-content: flex-end;flex-direction: row;height: calc(100% - (3.125em + 2.125em + 16px));align-items: center;";
526+
menu.append(pitchDiv, volumeDiv);
527527

528528
const previewButton = document.createElement("button");
529529
previewButton.style = "border-radius: 1000px;padding: 5px;width: 45px;height: 45px;margin-right: 10px;border-style: none;background: #00c3ff;";
530530
previewButton.innerHTML = `<img draggable="false" style="max-width: 100%;max-height: 100%" src="${playURI}">`;
531-
menu.textarea.append(previewButton);
531+
menu.append(previewButton);
532532

533533
// preview functionality
534534
// create an audio buffer using the selection
@@ -629,7 +629,7 @@ class SoundEditor extends React.Component {
629629
{ name: "Cancel", callback: () => {} },
630630
);
631631

632-
menu.textarea.style = "padding: 10px 20px;";
632+
menu.style = "padding: 10px 20px;";
633633
const rateTitle = genTitle("New Sample Rate:");
634634

635635
const rateSelector = document.createElement("select");
@@ -672,7 +672,7 @@ class SoundEditor extends React.Component {
672672
selectedForceRate = div.id == "1";
673673
e.stopPropagation();
674674
});
675-
menu.textarea.append(rateTitle, warningDiv, genTitle("Apply to:"), applicatorDiv, warningDiv2);
675+
menu.append(rateTitle, warningDiv, genTitle("Apply to:"), applicatorDiv, warningDiv2);
676676
}
677677
render() {
678678
const { effectTypes } = AudioEffects;

0 commit comments

Comments
 (0)