mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-16 17:08:31 +01:00
BUGFIX: Saved recipes can now be deleted again.
This commit is contained in:
parent
4d131c921a
commit
488ca7167e
4 changed files with 8 additions and 8 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -293,7 +293,7 @@ ControlsWaiter.prototype.populate_load_recipes_list = function() {
|
||||||
* Removes the currently selected recipe from local storage.
|
* Removes the currently selected recipe from local storage.
|
||||||
*/
|
*/
|
||||||
ControlsWaiter.prototype.load_delete_click = function() {
|
ControlsWaiter.prototype.load_delete_click = function() {
|
||||||
var id = document.getElementById("load-name").value,
|
var id = parseInt(document.getElementById("load-name").value, 10),
|
||||||
saved_recipes = localStorage.saved_recipes ?
|
saved_recipes = localStorage.saved_recipes ?
|
||||||
JSON.parse(localStorage.saved_recipes) : [];
|
JSON.parse(localStorage.saved_recipes) : [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue