ve.init.mw.trackSubscriber: Populate platform field with hack

Use the target used as a proxy for the platform.
Assuming all mobile target users are tablets for now.

Change-Id: I24610e6b6d472744dc1011385c8810a65e06decf
This commit is contained in:
Roan Kattouw 2014-11-25 17:22:24 -08:00
parent d34c275020
commit 35d3898543

View file

@ -69,7 +69,7 @@
version: 1,
action: action,
editor: 'visualeditor',
platform: 'desktop', // FIXME
platform: ve.init.target.static.name === 'mobile' ? 'tablet' : 'desktop', // HACK
integration: ve.init.target && ve.init.target.constructor.static.integrationType || 'page',
'page.id': mw.config.get( 'wgArticleId' ),
'page.title': mw.config.get( 'wgPageName' ),