1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 13:14:20 +00:00

possibilité de partager des créations

This commit is contained in:
Maxime Moraine 2020-06-10 19:14:34 +02:00
parent 398bcc9ba3
commit d111a52ee7
16 changed files with 287 additions and 13 deletions

View file

@ -0,0 +1,7 @@
export function encode (o) {
return btoa(unescape(encodeURIComponent(JSON.stringify(o))))
}
export function decode (s) {
return JSON.parse(decodeURIComponent(escape(atob(s))))
}