diff --git a/public/index.html b/public/index.html index 277750528..e2e5357cc 100644 --- a/public/index.html +++ b/public/index.html @@ -4092,7 +4092,7 @@
-
+
diff --git a/public/scripts/RossAscends-mods.js b/public/scripts/RossAscends-mods.js index 267711934..c2782a281 100644 --- a/public/scripts/RossAscends-mods.js +++ b/public/scripts/RossAscends-mods.js @@ -275,9 +275,7 @@ export async function favsToHotswap() { //helpful instruction message if no characters are favorited if (favs.length == 0) { - container.html(' ' - + container.attr('no_favs') - + ''); + container.html(`${DOMPurify.sanitize(container.attr('no_favs'))}`); return; } @@ -287,7 +285,7 @@ export async function favsToHotswap() { //changes input bar and send button display depending on connection status function RA_checkOnlineStatus() { if (online_status == 'no_connection') { - var send_textarea = $('#send_textarea'); + const send_textarea = $('#send_textarea'); send_textarea.attr('placeholder', send_textarea.attr('no_connection_text')); //Input bar placeholder tells users they are not connected $('#send_form').addClass('no-connection'); //entire input form area is red when not connected $('#send_but').addClass('displayNone'); //send button is hidden when not connected; @@ -297,7 +295,7 @@ function RA_checkOnlineStatus() { connection_made = false; } else { if (online_status !== undefined && online_status !== 'no_connection') { - var send_textarea = $('#send_textarea'); + const send_textarea = $('#send_textarea'); send_textarea.attr('placeholder', send_textarea.attr('connected_text')); //on connect, placeholder tells user to type message $('#send_form').removeClass('no-connection'); $('#API-status-top').removeClass('fa-plug-circle-exclamation redOverlayGlow');