Skip to content

Commit

Permalink
Fix misuse of in instead of includes method for checking array
Browse files Browse the repository at this point in the history
  • Loading branch information
Suyun114 authored and SamTV12345 committed Nov 15, 2024
1 parent 95f189c commit 8c1a519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static/js/vendors/html10n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 8c1a519

Please sign in to comment.