escrcpy/electron/helpers/console.js

13 lines
288 B
JavaScript
Raw Normal View History

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