chore(ext): improve debug logging

This commit is contained in:
Simon
2026-03-30 19:48:52 +08:00
parent e1fede1194
commit 52edd78cd4
4 changed files with 8 additions and 15 deletions

View File

@@ -4,9 +4,7 @@ import type { TabsController } from './TabsController'
const PREFIX = '[RemotePageController]'
function debug(...messages: any[]) {
console.debug(`\x1b[90m${PREFIX}\x1b[0m`, ...messages)
}
const debug = console.debug.bind(console, `\x1b[90m${PREFIX}\x1b[0m`)
function sendMessage(message: {
type: 'PAGE_CONTROL'