mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 09:26:14 -04: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…
Add table
Add a link
Reference in a new issue