mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Some small cleanups and fixes
This commit is contained in:
parent
e7c7b8ed53
commit
962ddde1f3
9 changed files with 34 additions and 39 deletions
|
|
@ -44,7 +44,7 @@ export const
|
|||
/* // Without deprecated 'unescape':
|
||||
b64EncodeJSON = data => btoa(encodeURIComponent(JSON.stringify(data)).replace(
|
||||
/%([0-9A-F]{2})/g, (match, p1) => String.fromCharCode('0x' + p1)
|
||||
)),
|
||||
)),
|
||||
*/
|
||||
b64EncodeJSONSafe = data => b64EncodeJSON(data).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, ''),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue