Skip to content
Snippets Groups Projects
Commit 91d16ece authored by Karishma Chadha's avatar Karishma Chadha
Browse files

Fix issue where fonts aren't actually getting injected.

parent 2711061c
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,12 @@ const getCostumeUrl = (function () {
svgRenderer.loadString(svgString);
const svgText = svgRenderer.toString(true /* shouldInjectFonts */);
cachedUrl = `data:image/svg+xml;utf8,${encodeURIComponent(svgText)}`;
} else {
cachedUrl = vm.runtime.storage.get(assetId).encodeDataURI();
}
} else {
cachedUrl = vm.runtime.storage.get(assetId).encodeDataURI();
}
cachedUrl = vm.runtime.storage.get(assetId).encodeDataURI();
return cachedUrl;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment