mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 06:01:02 +01:00
Fixed recipe saving
This commit is contained in:
parent
e0eb972a54
commit
cc44be7ef9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user