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,8 +1,9 @@
console.log('test!');
import { bglog } from './utils';
import Alpine from 'alpinejs';
window.Alpine = Alpine;
const log = msg => bglog(msg, 'popup');
Alpine.data('popup', () => ({
privKey: '',
pubKey: '',
@@ -17,7 +18,7 @@ Alpine.data('popup', () => ({
confirmDelete: false,
async init() {
console.log('Initializing backend.');
log('Initializing backend.');
await browser.runtime.sendMessage({ kind: 'init' });
this.$watch('profileIndex', async () => {