Skip to content

Commit

Permalink
Merge pull request #48315 from nextcloud/fix/remove-needless-console-log
Browse files Browse the repository at this point in the history
refactor(AccountIcon): Remove needless console.log
  • Loading branch information
Fenn-CS committed Sep 24, 2024
2 parents 8e58d58 + 8907f81 commit 13c2c37
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 13c2c37

Please sign in to comment.