mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-01 01:06:31 +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