aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-01-15 12:00:01 +0000
committerMario <mario@mariovavti.com>2025-01-15 12:00:01 +0000
commitebab5ff2819c854acb12341ce80e4232b90602d3 (patch)
treee791c66bbc586baabc8d8fe42bd3b2dfb93a179f
parent5fb6e5d6f788030af4426f5d6f982369ca0f9073 (diff)
downloadvolse-hubzilla-ebab5ff2819c854acb12341ce80e4232b90602d3.tar.gz
volse-hubzilla-ebab5ff2819c854acb12341ce80e4232b90602d3.tar.bz2
volse-hubzilla-ebab5ff2819c854acb12341ce80e4232b90602d3.zip
use bin2hex() instead of btoa() to create an id for the toast. btoa() will not work with nonascii chars.
(cherry picked from commit 0165f440634db4488c92507eb1427b2f3c828488) Co-authored-by: Mario Vavti <mario@mariovavti.com>
-rw-r--r--view/js/main.js2
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);