diff --git a/internal/webserver/web/templates/html_end2end.tmpl b/internal/webserver/web/templates/html_end2end.tmpl index afad5e6..ffb2655 100644 --- a/internal/webserver/web/templates/html_end2end.tmpl +++ b/internal/webserver/web/templates/html_end2end.tmpl @@ -46,13 +46,8 @@ } - function clearKeys() { - localStorage.removeItem("e2ekey"); - } - - function newKey() { - clearKeys(); + localStorage.removeItem("e2ekey"); let key; try { key = GokapiE2EGetNewCipher(true); @@ -107,7 +102,7 @@