Increase the number of stored previously selected languages to 9
Discussion about the magic number in the task. Bug: T135487 Change-Id: I5d0900f191cf277faa19d73de9cf393216d5e6ea
This commit is contained in:
committed by
Nikerabbit
parent
4f82a8650a
commit
fa7f7e8b57
@@ -72,7 +72,7 @@
|
|||||||
try {
|
try {
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
mw.uls.previousLanguagesStorageKey,
|
mw.uls.previousLanguagesStorageKey,
|
||||||
JSON.stringify( previousLanguages.slice( 0, 5 ) )
|
JSON.stringify( previousLanguages.slice( 0, 9 ) )
|
||||||
);
|
);
|
||||||
} catch ( e ) {}
|
} catch ( e ) {}
|
||||||
};
|
};
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
);
|
);
|
||||||
} catch ( e ) {}
|
} catch ( e ) {}
|
||||||
|
|
||||||
return previousLanguages.slice( 0, 5 );
|
return previousLanguages.slice( 0, 9 );
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user