mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
e3659d4846
Change-Id: Ia05b27f7c71c33580ffd0718e3bbc673dd8b3d63
10 lines
301 B
JavaScript
10 lines
301 B
JavaScript
// In VE-MW, track events using MediaWiki's system instead of VisualEditor's
|
|
ve.track = mw.track;
|
|
ve.trackSubscribe = mw.trackSubscribe;
|
|
|
|
ve.trackSubscribe( 'activity.', ( topic, data ) => {
|
|
mw.track( 'visualEditorFeatureUse', ve.extendObject( data, {
|
|
feature: topic.split( '.' )[ 1 ]
|
|
} ) );
|
|
} );
|