mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
js: Fix two misphrased conditions.
This commit is contained in:
@@ -71,7 +71,7 @@ $(function () {
|
||||
var current_generation_key = 'i18next:' + page_params.server_generation;
|
||||
// remove cached translations of older versions.
|
||||
translations.forEach(function (translation_key) {
|
||||
if (!translation_key.indexOf(current_generation_key) === 0) {
|
||||
if (translation_key.indexOf(current_generation_key) !== 0) {
|
||||
localStorage.removeItem(translation_key);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user