Pass `mode` property to MobileWebMainMenuClickTracking schema

Changes:
 - pass the mode property instead of mobileMode
 - if mobileMode is undefined, pass 'desktop'

Depends-On: Iedd26463128623e56b9a8612ccf2488739c854fa
Bug: T193505
Change-Id: I6706546fc136779e3872ef9405ca6749b01cf751
This commit is contained in:
Piotr Miazga 2018-11-27 00:42:33 +01:00
parent 8dfd431744
commit a15119bdc1
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ mw.loader.using( [
* userEditCount is optional.
*/
{
mobileMode: context.getMode(),
mode: context.getMode() || 'desktop',
username: user.getName() || undefined,
// FIXME: Use edit bucket here (T210106)
userEditCount: typeof editCount === 'number' ? editCount : undefined