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

@@ -1,3 +1,6 @@
export async function bglog(msg) {
await browser.runtime.sendMessage({ kind: 'log', payload: msg });
export async function bglog(msg, module = null) {
await browser.runtime.sendMessage({
kind: 'log',
payload: { msg, module },
});
}