From dd17fd7e3f3a83b9abebb87b29ed2a5609dab99f Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 29 Jun 2022 00:25:25 +0530 Subject: [PATCH] fix #796: Export SVG fix --- .vscode/launch.json | 15 +++++++++++++++ src/lib/components/actions.svelte | 1 + 2 files changed, 16 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..197e04802 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "pwa-chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:3000", + "webRoot": "${workspaceFolder}" + } + ] +} diff --git a/src/lib/components/actions.svelte b/src/lib/components/actions.svelte index 7a23e0149..f4f2ea4bd 100644 --- a/src/lib/components/actions.svelte +++ b/src/lib/components/actions.svelte @@ -57,6 +57,7 @@ const svgEl: HTMLElement = document .querySelector('#container svg') .cloneNode(true) as HTMLElement; + svgEl.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'); const fontAwesomeCdnUrl = Array.from(document.head.getElementsByTagName('link')) .map((l) => l.href) .find((h) => h && h.includes('font-awesome'));