mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Add UTM parameters
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "JadedBlueEyes",
|
"name": "JadedBlueEyes",
|
||||||
"short_name": "Jade",
|
"short_name": "Jade",
|
||||||
"start_url": "/",
|
"start_url": "/?utm_source=manifest",
|
||||||
"display": "minimal-ui",
|
"display": "minimal-ui",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,10 +18,12 @@
|
|||||||
$: handleWebShare;
|
$: handleWebShare;
|
||||||
const handleWebShare = async () => {
|
const handleWebShare = async () => {
|
||||||
try {
|
try {
|
||||||
|
let url = new URL(canonical)
|
||||||
|
url.searchParams.set("utm_medium", "share")
|
||||||
navigator.share({
|
navigator.share({
|
||||||
title: data.post.title,
|
title: data.post.title,
|
||||||
text: data.post.description,
|
text: data.post.description,
|
||||||
url: canonical,
|
url: url.href,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
webShareAPISupported = false;
|
webShareAPISupported = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user