Skip to content

Commit 2d39b9b

Browse files
committed
Update index.js
1 parent 055c628 commit 2d39b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/puter-js/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ window.puter = (function() {
352352

353353
print = function(...args){
354354
for(let arg of args){
355-
document.getElementsByTagName('body')[0].append(arg);
355+
document.body.innerHTML += arg;
356356
}
357357
}
358358
}

0 commit comments

Comments
 (0)