Don't log VEFeatureUse from DiscussionTools

Change-Id: Ie02381e1e65175871c5b43c8089688f632a5066c
This commit is contained in:
David Lynch 2020-05-06 17:08:26 -05:00
parent 687cdc84e8
commit 92f4e5432e

View file

@ -224,8 +224,15 @@
return;
}
if ( ve.init.target && ve.init.target.constructor.static.platformType === 'phone' ) {
// handled in MobileFrontend for session-identification reasons
if ( ve.init.target && (
ve.init.target.constructor.static.platformType !== 'desktop'
) ) {
// We want to log activity events when we're also logging to
// EditAttemptStep. The EAS events are only fired from DesktopArticleTarget
// in this repo. As such, we suppress this unless the current target is at
// least inheriting that. (Other tools may fire their own instances of
// those events, but probably need to reimplement this anyway for
// session-identification reasons.)
return;
}