Skip to content

Commit

Permalink
Use let/const isntead of var
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Sep 12, 2024
1 parent f3c688e commit 68e24da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/web/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let data = {
const data = {
target: {
to: null,
cc: null,
Expand All @@ -19,7 +19,7 @@ function toArray(str) {
}
const resultList = [];
str = str.trim();
for (var item of str.split("\n")) {
for (let item of str.split("\n")) {
item = item.trim();
if (item.length <= 0) {
continue;
Expand Down
6 changes: 3 additions & 3 deletions src/web/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function onMessageFromParent(arg) {

console.log(data);

let trustedRecipients = new Set();
let untrustedRecipients = new Set();
let matchedAttachments = new Set();
const trustedRecipients = new Set();
const untrustedRecipients = new Set();
//const matchedAttachments = new Set();

let recipients = [];
if (data.target.to) {
Expand Down

0 comments on commit 68e24da

Please sign in to comment.