mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 06:03:34 +01:00
Fix misuse of in
instead of includes
method for checking array
This commit is contained in:
parent
95f189c5c1
commit
8c1a519465
1 changed files with 1 additions and 1 deletions
2
src/static/js/vendors/html10n.ts
vendored
2
src/static/js/vendors/html10n.ts
vendored
|
@ -538,7 +538,7 @@ export class Html10n {
|
|||
for (let i=0, n=langs.length; i < n; i++) {
|
||||
lang = langs[i]
|
||||
if(!lang) continue;
|
||||
if(!(lang in langs)) {// uh, we don't have this lang availbable..
|
||||
if(!langs.includes(lang)) {// uh, we don't have this lang availbable..
|
||||
// then check for related langs
|
||||
if(~lang.indexOf('-') != -1) {
|
||||
lang = lang.split('-')[0];
|
||||
|
|
Loading…
Reference in a new issue