Explorar o código

Fixed recipe saving

n1474335 %!s(int64=8) %!d(string=hai) anos
pai
achega
cc44be7ef9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/web/ControlsWaiter.js

+ 1 - 1
src/web/ControlsWaiter.js

@@ -257,7 +257,7 @@ ControlsWaiter.prototype.loadClick = function() {
  */
 ControlsWaiter.prototype.saveButtonClick = function() {
     const recipeName = Utils.escapeHtml(document.getElementById("save-name").value);
-    const recipeStr  = document.getElementById("save-text").value;
+    const recipeStr  = document.querySelector("#save-texts .tab-pane.active textarea").value;
 
     if (!recipeName) {
         this.app.alert("Please enter a recipe name", "danger", 2000);