fix: make app link clickable in generated SVG

This commit is contained in:
2026-02-12 16:52:36 +01:00
parent b90809fca1
commit 30c1faeae4
2 changed files with 6 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ define(['./workbox-7a5e81cd'], (function (workbox) { 'use strict';
*/
workbox.precacheAndRoute([{
"url": "index.html",
"revision": "0.3a36j2s74ho"
"revision": "0.ohmkvc7m8mo"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

View File

@@ -227,7 +227,11 @@ export function buildShareSVG(data, t, formattedTime) {
}
// URL
svgContent += `<text x="${padding}" y="${height - padding + 6}" font-family="Segoe UI, sans-serif" font-weight="500" font-size="14" fill="${urlColor}">${appUrl}</text>`;
svgContent += `
<a href="${appUrl}" target="_blank">
<text x="${padding}" y="${height - padding + 6}" font-family="Segoe UI, sans-serif" font-weight="500" font-size="14" fill="${urlColor}" style="text-decoration: underline; cursor: pointer;">${appUrl}</text>
</a>
`;
svgContent += '</svg>';
return svgContent;