2
0
mirror of https://github.com/gchq/CyberChef synced 2026-02-20 03:14:06 +00:00

auto-fix prefer-const

This commit is contained in:
Thomas Grainger
2017-05-02 23:06:28 +01:00
parent 5b03a84be8
commit 15aea9e9ea
5 changed files with 14 additions and 14 deletions

View File

@@ -244,8 +244,8 @@ ControlsWaiter.prototype.loadClick = function() {
* Saves the recipe specified in the save textarea to local storage.
*/
ControlsWaiter.prototype.saveButtonClick = function() {
let recipeName = Utils.escapeHtml(document.getElementById("save-name").value);
let recipeStr = document.getElementById("save-text").value;
const recipeName = Utils.escapeHtml(document.getElementById("save-name").value);
const recipeStr = document.getElementById("save-text").value;
if (!recipeName) {
this.app.alert("Please enter a recipe name", "danger", 2000);