auto-fix prefer-const

This commit is contained in:
Thomas Grainger 2017-05-02 23:06:28 +01:00
parent 5b03a84be8
commit 15aea9e9ea
No known key found for this signature in database
GPG key ID: 995EA0A029283160
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);