Fix issue where fonts aren't actually getting injected.
This commit is contained in:
1 parent
2711061c56
commit
91d16ecef7
1 file changed
+3
-1
@@ -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;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user