mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-09-24 18:58:29 +00:00
Merge "Guard against undefined config variable"
This commit is contained in:
commit
4274a98413
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue