Trying out the XSS-safe approach for puter.print

This commit is contained in:
jelveh
2025-05-21 18:11:51 -07:00
parent bd8d141879
commit 7f699302a4
+2 -1
View File
@@ -524,7 +524,8 @@ export default window.puter = (function() {
print = function(...args){
for(let arg of args){
document.body.innerHTML += arg;
const textNode = document.createTextNode(arg);
document.body.appendChild(textNode);
}
}
}