From 1fd9a344d4d728eb5da3e232b64881be5279ca61 Mon Sep 17 00:00:00 2001 From: Son Date: Wed, 3 Nov 2021 10:53:39 +0100 Subject: [PATCH] refactor --- static/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index b264a8c8..fcbdd7ac 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -41,7 +41,7 @@ function confirmDeleteAlias() { }, } - }) + }); } $(".enable-disable-alias").change(async function () { @@ -113,7 +113,7 @@ $(".enable-disable-pgp").change(async function (e) { // reset to the original value $(this).prop("checked", oldValue); } - } catch (e) { + } catch (err) { toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error"); // reset to the original value $(this).prop("checked", oldValue);