Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor(AccountIcon): Remove needless console.log
Signed-off-by: fenn-cs <[email protected]>
  • Loading branch information
nfebe authored and backportbot[bot] committed Sep 24, 2024
commit c10666485e1a11e4b4a7bd610aef02a597127993
1 change: 0 additions & 1 deletion apps/files_sharing/src/utils/AccountIcon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const isDarkMode = window?.matchMedia?.('(prefers-color-scheme: dark)')?.matches
|| document.querySelector('[data-themes*=dark]') !== null

export const generateAvatarSvg = (userId: string, isExternalUser = false) => {
console.log('User ID:', userId)
const url = isDarkMode ? '/avatar/{userId}/32/dark' : '/avatar/{userId}/32'
const avatarUrl = generateUrl(isExternalUser ? url + '?guestFallback=true' : url, { userId })
return `<svg width="32" height="32" viewBox="0 0 32 32"
Expand Down