Merge "Guard against undefined config variable"

This commit is contained in:
jenkins-bot 2019-07-15 13:46:38 +00:00 committed by Gerrit Code Review
commit 4274a98413
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@
* @ignore
*/
function createMainMenu() {
var options = mw.config.get( 'wgMinervaMenuData' );
// Failsafe in case this is not defined e.g. T225423
var options = mw.config.get( 'wgMinervaMenuData', {} );
options.activator = '.header .main-menu-button';