Merge "skins.minerva.scripts: Remove use of deprecated ext.eventLogging.subscriber"

This commit is contained in:
jenkins-bot 2019-05-22 19:49:45 +00:00 committed by Gerrit Code Review
commit a1b175a11a
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
mw.loader.using( [
'ext.eventLogging.subscriber'
'ext.eventLogging'
] ).then( function () {
var M = mw.mobileFrontend,
user = mw.user,
@ -7,7 +7,7 @@ mw.loader.using( [
// Need to make amc default to false because it will not exist in mw.config
// if using desktop Minerva or if MobileFrontend extension is not installed.
amc = mw.config.get( 'wgMFAmc', false ),
// Schema provided by ext.eventLogging.subscriber class
// Schema class provided by ext.eventLogging module
Schema = mw.eventLog.Schema, // resource-modules-disable-line
context = M.require( 'mobile.startup' ).context,
DEFAULT_SAMPLING_RATE = mw.config.get( 'wgMinervaSchemaMainMenuClickTrackingSampleRate' ),