fix: make app link clickable in generated SVG
This commit is contained in:
@@ -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"), {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user