Skip to content

Commit ba16234

Browse files
committed
create .jshintrc file, set esversion=8
1 parent 334dc01 commit ba16234

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.jshintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esversion": 8
3+
}

static/js/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ $(".enable-disable-alias").change(async function () {
4949
let alias = $(this).data("alias-email");
5050

5151
await disableAlias(aliasId, alias);
52-
})
52+
});
5353

5454
async function disableAlias(aliasId, alias) {
5555
let oldValue;
@@ -118,7 +118,7 @@ $(".enable-disable-pgp").change(async function (e) {
118118
// reset to the original value
119119
$(this).prop("checked", oldValue);
120120
}
121-
})
121+
});
122122

123123
$(".pin-alias").change(async function () {
124124
let aliasId = $(this).data("alias");
@@ -153,7 +153,7 @@ $(".pin-alias").change(async function () {
153153
// reset to the original value
154154
$(this).prop("checked", oldValue);
155155
}
156-
})
156+
});
157157

158158
$(".save-note").on("click", async function () {
159159
let oldValue;
@@ -186,7 +186,7 @@ $(".save-note").on("click", async function () {
186186
$(this).prop("checked", oldValue);
187187
}
188188

189-
})
189+
});
190190

191191
$(".save-mailbox").on("click", async function () {
192192
let oldValue;
@@ -224,7 +224,7 @@ $(".save-mailbox").on("click", async function () {
224224
$(this).prop("checked", oldValue);
225225
}
226226

227-
})
227+
});
228228

229229
$(".save-alias-name").on("click", async function () {
230230
let aliasId = $(this).data("alias");
@@ -250,7 +250,7 @@ $(".save-alias-name").on("click", async function () {
250250
toastr.error("Sorry for the inconvenience! Could you refresh the page & retry please?", "Unknown Error");
251251
}
252252

253-
})
253+
});
254254

255255

256256
new Vue({

0 commit comments

Comments
 (0)