From f765180c1bc2fd2dfeff096a4f727bb1dd2978c6 Mon Sep 17 00:00:00 2001 From: jelveh Date: Wed, 21 May 2025 19:21:52 -0700 Subject: [PATCH] well, puter.log is taken so going to change puter.print instead --- src/puter-js/src/index.js | 8 +------- src/puter-js/src/lib/xdrpc.js | 2 -- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/puter-js/src/index.js b/src/puter-js/src/index.js index 47f9e7f5f..25d4281fe 100644 --- a/src/puter-js/src/index.js +++ b/src/puter-js/src/index.js @@ -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 += `
` @@ -545,7 +539,7 @@ export default window.puter = (function() { container.innerText += '\n'; } } - }; + } } // Create a new Puter object and return it diff --git a/src/puter-js/src/lib/xdrpc.js b/src/puter-js/src/lib/xdrpc.js index 8b799b2c0..8aa48b248 100644 --- a/src/puter-js/src/lib/xdrpc.js +++ b/src/puter-js/src/lib/xdrpc.js @@ -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)) {