mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-15 03:27:18 +00:00
well, puter.log is taken so going to change puter.print instead
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user