浏览代码

Fixed recipe saving

n1474335 8 年之前
父节点
当前提交
cc44be7ef9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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() {
 ControlsWaiter.prototype.saveButtonClick = function() {
     const recipeName = Utils.escapeHtml(document.getElementById("save-name").value);
     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) {
     if (!recipeName) {
         this.app.alert("Please enter a recipe name", "danger", 2000);
         this.app.alert("Please enter a recipe name", "danger", 2000);