summaryrefslogtreecommitdiff
path: root/plugins/archive/archive.js
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2013-10-30 19:51:55 +0100
committerAleksander Machniak <machniak@kolabsys.com>2013-10-30 19:51:55 +0100
commit6a91448aee5d036b35c621bbdaff250dc84e15f3 (patch)
tree4cc4c149e05b163d8a2a209471d07b13344e5801 /plugins/archive/archive.js
parent8d9dcca2b6fc1117e170195aa4104980e5bfa238 (diff)
Improve performance and code readability by using String's startsWith() method, other code improvements
Diffstat (limited to 'plugins/archive/archive.js')
-rw-r--r--plugins/archive/archive.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/archive/archive.js b/plugins/archive/archive.js
index 17a1ecdb4..2e5267425 100644
--- a/plugins/archive/archive.js
+++ b/plugins/archive/archive.js
@@ -27,7 +27,7 @@ function rcmail_is_archive()
// check if current folder is an archive folder or one of its children
if (rcmail.env.mailbox == rcmail.env.archive_folder
- || rcmail.env.mailbox.indexOf(rcmail.env.archive_folder + rcmail.env.delimiter) != 0
+ || rcmail.env.mailbox.startsWith(rcmail.env.archive_folder + rcmail.env.delimiter)
) {
return true;
}