n1474335 7 年之前
父节点
当前提交
c3a353837f
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 0 1
      src/core/operations/TranslateDateTimeFormat.mjs
  2. 1 2
      src/web/OutputWaiter.mjs

+ 0 - 1
src/core/operations/TranslateDateTimeFormat.mjs

@@ -7,7 +7,6 @@
 import Operation from "../Operation";
 import Operation from "../Operation";
 import moment from "moment-timezone";
 import moment from "moment-timezone";
 import {DATETIME_FORMATS, FORMAT_EXAMPLES} from "../lib/DateTime";
 import {DATETIME_FORMATS, FORMAT_EXAMPLES} from "../lib/DateTime";
-import OperationError from "../errors/OperationError";
 
 
 /**
 /**
  * Translate DateTime Format operation
  * Translate DateTime Format operation

+ 1 - 2
src/web/OutputWaiter.mjs

@@ -444,7 +444,6 @@ class OutputWaiter {
 
 
         const currentRecipeConfig = this.app.getRecipeConfig();
         const currentRecipeConfig = this.app.getRecipeConfig();
         const newRecipeConfig = currentRecipeConfig.concat(options[0].recipe);
         const newRecipeConfig = currentRecipeConfig.concat(options[0].recipe);
-        const recipeURL = "#recipe=" + Utils.encodeURIFragment(Utils.generatePrettyRecipe(newRecipeConfig));
         const opSequence = options[0].recipe.map(o => o.op).join(", ");
         const opSequence = options[0].recipe.map(o => o.op).join(", ");
 
 
         this.showMagicButton(opSequence, options[0].data, newRecipeConfig);
         this.showMagicButton(opSequence, options[0].data, newRecipeConfig);
@@ -461,7 +460,7 @@ class OutputWaiter {
     magicClick() {
     magicClick() {
         const magicButton = document.getElementById("magic");
         const magicButton = document.getElementById("magic");
         this.app.setRecipeConfig(JSON.parse(magicButton.getAttribute("data-recipe")));
         this.app.setRecipeConfig(JSON.parse(magicButton.getAttribute("data-recipe")));
-        window.dispatchEvent(this.manager.statechange); 
+        window.dispatchEvent(this.manager.statechange);
         this.hideMagicButton();
         this.hideMagicButton();
     }
     }