mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-01 01:06:31 +00:00
dfb3e0b8c7
menu/schema is never imported so it never executed. Move it into initLogging which seems to the be the logic place for this code to execute Change-Id: Iec85548cf96fcc7ea96977d0aa89f601dbd8599f
15 lines
468 B
JavaScript
15 lines
468 B
JavaScript
// This initialises EventLogging for main menu and some prominent links in the UI.
|
|
// This code should only be loaded on the Minerva skin, it does not apply to other skins.
|
|
// @deprecated and to be removed the moment that T220016 is live.
|
|
var mainMenu = require( './menu.js' ),
|
|
logging = require( './menu/schema.js' );
|
|
|
|
module.exports = function () {
|
|
mw.loader.using( [
|
|
'ext.eventLogging'
|
|
] ).then( function () {
|
|
logging();
|
|
mainMenu.enableLogging();
|
|
} );
|
|
};
|