Updated the current username variable in the Twitch moderation template to use JSON formatting for improved data handling and security. This change enhances the integration of user data within the JavaScript context.

This commit is contained in:
2026-03-10 19:36:55 +01:00
parent c8c1e0c283
commit 1bf24d299c
+1 -1
View File
@@ -651,7 +651,7 @@
// =============================
var displayedMessages = new Set();
var isAutoScroll = true;
var currentUsername = '{{ current_user.username }}';
var currentUsername = {{ current_user.username | tojson }};
function escapeHtml(text) {
var div = document.createElement('div');