mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Resolve #967 btoa() issue
This commit is contained in:
parent
03379a6163
commit
4852895488
4 changed files with 11 additions and 6 deletions
|
|
@ -63,11 +63,11 @@
|
|||
.slice(0,2)
|
||||
.toUpperCase(),
|
||||
setIdenticon = (from, fn) => hash(from.email).then(hash =>
|
||||
fn('data:image/svg+xml;base64,' + btoa(window.identiconSvg(
|
||||
fn('data:image/svg+xml;base64,' + btoa(unescape(encodeURIComponent(window.identiconSvg(
|
||||
hash,
|
||||
fromChars(from),
|
||||
window.getComputedStyle(getEl('rl-app'), null).getPropertyValue('font-family')
|
||||
)))
|
||||
)))))
|
||||
),
|
||||
addQueue = (msg, fn) => {
|
||||
msg.from?.[0] && setIdenticon(msg.from[0], fn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue