diff options
author | Mario Vavti <mario@mariovavti.com> | 2025-01-15 12:50:45 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2025-01-15 12:50:45 +0100 |
commit | 0165f440634db4488c92507eb1427b2f3c828488 (patch) | |
tree | b679e5f50d6717c98a8d53f6db8153e23cf083ba /view | |
parent | 8fc0e41beb4563844541868b6c427720cf76d5aa (diff) | |
download | volse-hubzilla-0165f440634db4488c92507eb1427b2f3c828488.tar.gz volse-hubzilla-0165f440634db4488c92507eb1427b2f3c828488.tar.bz2 volse-hubzilla-0165f440634db4488c92507eb1427b2f3c828488.zip |
use bin2hex() instead of btoa() to create an id for the toast. btoa() will not work with nonascii chars.
Diffstat (limited to 'view')
-rw-r--r-- | view/js/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js index f20b3590d..ce1d71596 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1796,7 +1796,7 @@ function toggleAside() { } function toast(string, severity) { - let id = btoa(string); + let id = bin2hex(string); let container = document.getElementById('toast-container'); let toast = document.getElementById(id); |