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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user