diff --git a/index.html b/index.html index 805752e..d835595 100644 --- a/index.html +++ b/index.html @@ -18,14 +18,14 @@
@@ -57,7 +51,7 @@
@@ -80,4 +74,4 @@ - \ No newline at end of file + diff --git a/script.js b/script.js index 21cab3d..1dc67f1 100644 --- a/script.js +++ b/script.js @@ -30,7 +30,7 @@ function renderEmails() { var emailDataTemp = filteredEmailData; - if (activePage == 'favourites') { + if (activePage == 'favorites') { emailDataTemp = emailDataTemp.filter(x => x.isFavorite) } @@ -53,8 +53,8 @@ function renderEmails() {
${email.subject.substr(0, 30)} ${email.subject.length > 30 ? '...' : ''}
- - + +
@@ -162,11 +162,11 @@ async function setActiveEmail(id) { } /** - * @desc Toggle favourite against an email to add/remove email from favourites list + * @desc Toggle favorite against an email to add/remove email from favorites list * @param {*} e * @param {String} id */ -function toggleFavourite(e, id) { +function toggleFavorite(e, id) { // To prevent event bubbling e.stopPropagation(); @@ -220,7 +220,7 @@ function getEmailFromApi(id = "") { } /** - * @desc set active folder (Inbox, Favourites) + * @desc set active folder (Inbox, Favorites) */ const foldersListElement = document.querySelector('#folders > ul').children; function setActiveFolder(ele) { @@ -275,4 +275,4 @@ getEmailFromApi() */ utility.makeResizable({ id: 'folders', minWidth: '15%', maxWidth: '400px' }) -utility.makeResizable({ id: 'emailList', minWidth: '30%', maxWidth: '550px' }) \ No newline at end of file +utility.makeResizable({ id: 'emailList', minWidth: '30%', maxWidth: '550px' })