mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08:00
parent
0ff7b33a48
commit
faa17ca3de
1 changed files with 2 additions and 2 deletions
|
@ -37,10 +37,10 @@ try {
|
|||
if (!smctoken) {
|
||||
let data = new Uint8Array(16);
|
||||
crypto.getRandomValues(data);
|
||||
smctoken = btoa(String.fromCharCode(...data));
|
||||
smctoken = encodeURIComponent(btoa(String.fromCharCode(...data)));
|
||||
}
|
||||
localStorage.setItem('smctoken', smctoken);
|
||||
doc.cookie = 'smctoken='+encodeURIComponent(smctoken)+"; path=/; samesite=strict";
|
||||
doc.cookie = 'smctoken='+smctoken+"; path=/; samesite=strict";
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue