Fix "URI malformed" crashes on Windows

This commit is contained in:
Evan Hahn 2021-02-19 11:50:32 -06:00 committed by Scott Nonnenberg
parent a4a27724bf
commit 3306c82992
3 changed files with 21 additions and 4 deletions

View file

@ -474,7 +474,7 @@ function ThumbnailImage({
<div
className="module-quote__icon-container"
style={
loadedSrc ? { backgroundImage: `url('${escape(loadedSrc)}')` } : {}
loadedSrc ? { backgroundImage: `url('${encodeURI(loadedSrc)}')` } : {}
}
>
{children}