Fix header url param to not render html

- PR #346 submitted by Eric to the original repo fixes xss bug
This commit is contained in:
Justin Byers 2024-01-26 11:44:20 -06:00
parent 64e86994f7
commit 33a14324cb

View file

@ -208,7 +208,7 @@ socket.on('headerBackground', (data: string) => {
socket.on('header', (data: string) => {
if (data) {
header.innerHTML = data;
header.textContent = data;
header.style.display = 'block';
// header is 19px and footer is 19px, recaculate new terminal-container and resize
terminalContainer.style.height = 'calc(100% - 38px)';