create .jshintrc file, set esversion=8

This commit is contained in:
Son 2021-11-03 10:20:21 +01:00
parent 334dc01a1b
commit ba16234456
2 changed files with 9 additions and 6 deletions

3
.jshintrc Normal file
View file

@ -0,0 +1,3 @@
{
"esversion": 8
}

View file

@ -49,7 +49,7 @@ $(".enable-disable-alias").change(async function () {
let alias = $(this).data("alias-email"); let alias = $(this).data("alias-email");
await disableAlias(aliasId, alias); await disableAlias(aliasId, alias);
}) });
async function disableAlias(aliasId, alias) { async function disableAlias(aliasId, alias) {
let oldValue; let oldValue;
@ -118,7 +118,7 @@ $(".enable-disable-pgp").change(async function (e) {
// reset to the original value // reset to the original value
$(this).prop("checked", oldValue); $(this).prop("checked", oldValue);
} }
}) });
$(".pin-alias").change(async function () { $(".pin-alias").change(async function () {
let aliasId = $(this).data("alias"); let aliasId = $(this).data("alias");
@ -153,7 +153,7 @@ $(".pin-alias").change(async function () {
// reset to the original value // reset to the original value
$(this).prop("checked", oldValue); $(this).prop("checked", oldValue);
} }
}) });
$(".save-note").on("click", async function () { $(".save-note").on("click", async function () {
let oldValue; let oldValue;
@ -186,7 +186,7 @@ $(".save-note").on("click", async function () {
$(this).prop("checked", oldValue); $(this).prop("checked", oldValue);
} }
}) });
$(".save-mailbox").on("click", async function () { $(".save-mailbox").on("click", async function () {
let oldValue; let oldValue;
@ -224,7 +224,7 @@ $(".save-mailbox").on("click", async function () {
$(this).prop("checked", oldValue); $(this).prop("checked", oldValue);
} }
}) });
$(".save-alias-name").on("click", async function () { $(".save-alias-name").on("click", async function () {
let aliasId = $(this).data("alias"); let aliasId = $(this).data("alias");
@ -250,7 +250,7 @@ $(".save-alias-name").on("click", async function () {
toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error"); toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error");
} }
}) });
new Vue({ new Vue({