mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
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:
parent
d34c275020
commit
35d3898543
|
@ -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' ),
|
||||
|
|
Loading…
Reference in a new issue