Replace console.log with bglog.
This commit is contained in:
@@ -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];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user