diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2013-10-30 19:51:55 +0100 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2013-10-30 19:51:55 +0100 |
commit | 6a91448aee5d036b35c621bbdaff250dc84e15f3 (patch) | |
tree | 4cc4c149e05b163d8a2a209471d07b13344e5801 /plugins/archive | |
parent | 8d9dcca2b6fc1117e170195aa4104980e5bfa238 (diff) |
Improve performance and code readability by using String's startsWith() method, other code improvements
Diffstat (limited to 'plugins/archive')
-rw-r--r-- | plugins/archive/archive.js | 2 |
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; } |