mediawiki-skins-MinervaNeue/resources/skins.minerva.scripts/initLogging.js

10 lines
349 B
JavaScript
Raw Normal View History

// 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.
( function ( M, $ ) {
var mainMenu = M.require( 'skins.minerva.scripts.top/mainMenu' );
$( function () {
mainMenu.enableLogging();
} );
}( mw.mobileFrontend, jQuery ) );