Skip to content
Snippets Groups Projects
Unverified Commit 06bf3896 authored by Karishma Chadha's avatar Karishma Chadha Committed by GitHub
Browse files

Merge pull request #3409 from kchadha/get-costume-url-bugfix

Get costume url bugfix
parents 6a28998a e82c7428
No related branches found
No related tags found
No related merge requests found
......@@ -283,6 +283,7 @@ $fade-out-distance: 15px;
.watermark {
position: absolute;
top: 1.25rem;
pointer-events: none;
}
[dir="ltr"] .watermark {
......
......@@ -5,5 +5,4 @@
max-width: 48px;
max-height: 48px;
opacity: 0.35;
pointer-events: none;
}
......@@ -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