Fix issue where fonts aren't actually getting injected.

This commit is contained in:
Karishma Chadha committed 2018-10-17 17:05:13 -04:00
1 parent 2711061c56
commit 91d16ecef7
1 file changed
+3 -1
+3 -1
View File
@@ -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;
};