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

@ -1,4 +1,4 @@
// Copyright 2020 Signal Messenger, LLC
// Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
@ -26,7 +26,7 @@ export const CallBackgroundBlur = ({
<div
className="module-calling__background--blur"
style={{
backgroundImage: `url("${avatarPath}")`,
backgroundImage: `url('${encodeURI(avatarPath)}')`,
}}
/>
)}