escrcpy/electron/helpers/console.js

13 lines
288 B
JavaScript
Raw Normal View History

import appStore from './store.js'
import { createProxy } from './index.js'
2024-05-15 05:16:02 +02:00
import log from '$electron/helpers/log.js'
const debug = appStore.get('common.debug') || false
if (debug) {
Object.assign(console, {
...createProxy(log.functions, log.levels),
raw: console.log,
})
}