well, puter.log is taken so going to change puter.print instead

This commit is contained in:
jelveh
2025-05-21 19:21:52 -07:00
parent f6786b8895
commit f765180c1b
2 changed files with 1 additions and 9 deletions
+1 -7
View File
@@ -523,12 +523,6 @@ export default window.puter = (function() {
}
print = function(...args){
for(let arg of args){
document.body.innerHTML += arg;
}
}
log = function(...args) {
let container = document.getElementById("--puter-printbox");
if (!container) {
document.body.innerHTML += `<pre><code id="--puter-printbox"></code></pre>`
@@ -545,7 +539,7 @@ export default window.puter = (function() {
container.innerText += '\n';
}
}
};
}
}
// Create a new Puter object and return it
-2
View File
@@ -88,8 +88,6 @@ export class Hydrator {
) {
const { id } = value;
return (...args) => {
// console.log('sending message', { $SCOPE, id, args });
// console.log('target', this.target);
this.target.postMessage({ $SCOPE, id, args }, '*');
};
} else if (Array.isArray(value)) {