mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Update src/components/structures/LeftPanel.tsx
Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3e548bbc94
commit
6a82a1f3c7
@@ -123,7 +123,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
|||||||
const avatarUrlProp = `url(${avatarUrl})`;
|
const avatarUrlProp = `url(${avatarUrl})`;
|
||||||
if (!avatarUrl) {
|
if (!avatarUrl) {
|
||||||
document.body.style.removeProperty("--avatar-url");
|
document.body.style.removeProperty("--avatar-url");
|
||||||
} else if (avatarUrl && document.body.style.getPropertyValue("--avatar-url") !== avatarUrlProp) {
|
} else if (document.body.style.getPropertyValue("--avatar-url") !== avatarUrlProp) {
|
||||||
document.body.style.setProperty("--avatar-url", avatarUrlProp);
|
document.body.style.setProperty("--avatar-url", avatarUrlProp);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user