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:
Niklas Laxström
2016-05-20 14:26:18 +02:00
committed by Nikerabbit
parent 4f82a8650a
commit fa7f7e8b57

View File

@@ -72,7 +72,7 @@
try {
localStorage.setItem(
mw.uls.previousLanguagesStorageKey,
JSON.stringify( previousLanguages.slice( 0, 5 ) )
JSON.stringify( previousLanguages.slice( 0, 9 ) )
);
} catch ( e ) {}
};
@@ -87,7 +87,7 @@
);
} catch ( e ) {}
return previousLanguages.slice( 0, 5 );
return previousLanguages.slice( 0, 9 );
};
/**