Merge "Track links shared by Share feature"

This commit is contained in:
jenkins-bot 2019-03-18 15:58:44 +00:00 committed by Gerrit Code Review
commit ee82a568cb

View file

@ -9,10 +9,13 @@
*/
function clickShareHandler( navigator ) {
return function () {
var url = new URL( window.location.href );
url.searchParams.append( 'wprov', 'mfsw1' );
url.searchParams.delete( 'debug' );
navigator.share( {
title: config.get( 'wgTitle' ),
text: config.get( 'wgTitle' ),
url: window.location.href.split( '#' )[ 0 ]
url: url.toString()
} );
};
}