From 0165f440634db4488c92507eb1427b2f3c828488 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 15 Jan 2025 12:50:45 +0100 Subject: use bin2hex() instead of btoa() to create an id for the toast. btoa() will not work with nonascii chars. --- view/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view') 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); -- cgit v1.2.3