mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
Merge "Track links shared by Share feature"
This commit is contained in:
commit
ee82a568cb
|
@ -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()
|
||||
} );
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue