diff --git a/src/pages/Proxies.tsx b/src/pages/Proxies.tsx index a3d24c7..244ad15 100644 --- a/src/pages/Proxies.tsx +++ b/src/pages/Proxies.tsx @@ -92,7 +92,26 @@ export default () => { e.stopPropagation() void proxyGroupLatencyTest(groupName) } - + /** + * transform an SVG into a data URI + * @see https://gist.github.com/jennyknuth/222825e315d45a738ed9d6e04c7a88d0 + */ + const encodeSvg = (svg: string) => { + return svg + .replace( + '/g, '%3E') + } const onProxyProviderLatencyTestClick = ( e: MouseEvent, providerName: string, @@ -193,13 +212,33 @@ export default () => {