Replace console.log with bglog.

This commit is contained in:
Ryan Breen
2023-01-26 20:26:23 -05:00
parent e08d19855e
commit f98ab34f0a
4 changed files with 15 additions and 11 deletions

View File

@@ -23,7 +23,6 @@ window.nostr = {
let reqId = Math.random().toString();
return new Promise((resolve, _reject) => {
this.requests[reqId] = resolve;
console.log(`Event ${reqId}: ${kind}, payload: `, payload);
window.postMessage({ kind, reqId, payload }, '*');
});
},
@@ -57,7 +56,6 @@ window.addEventListener('message', message => {
if (!validEvents.includes(kind)) return;
console.log(`Event ${reqId}: Received payload:`, payload);
window.nostr.requests[reqId](payload);
delete window.nostr.requests[reqId];
});