Skip to content

Commit 3751181

Browse files
committed
Merge branch 'master' into dborkan-quiver-dist-2
2 parents c6a4b7f + b776ee4 commit 3751181

File tree

1 file changed

+2
-1
lines changed
  • src/generic_ui/scripts

1 file changed

+2
-1
lines changed

src/generic_ui/scripts/ui.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ export function getImageData(userId :string, oldImageData :string,
6464
// as long as jdenticon only uses '"' in the generated code...
6565
// The size is arbitrarily set to 100 pixels. SVG is scalable and our CSS
6666
// scales the image to fit the space, so this parameter has no effect.
67+
// We must also replace # with %23 for Firefox support.
6768
return '\'data:image/svg+xml;utf8,' +
68-
jdenticon.toSvg(md5(userId), 100) + '\'';
69+
jdenticon.toSvg(md5(userId), 100).replace(/#/g, '%23') + '\'';
6970
} else if (!newImageData) {
7071
// This case is hit when we've already generated a jdenticon for a user
7172
// who doesn't have any image in uProxy core.

0 commit comments

Comments
 (0)