Merge "Guard against undefined config variable"
This commit is contained in:
commit
4274a98413
|
@ -13,7 +13,8 @@
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
function createMainMenu() {
|
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';
|
options.activator = '.header .main-menu-button';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue