Skip to content

Commit

Permalink
Merge pull request #48318 from nextcloud/backport/48315/stable28
Browse files Browse the repository at this point in the history
[stable28] refactor(AccountIcon): Remove needless console.log
  • Loading branch information
Fenn-CS authored Sep 26, 2024
2 parents 4ddcdea + 3f0e259 commit fa6f516
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
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
Loading

0 comments on commit fa6f516

Please sign in to comment.