mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-30 18:24:27 +01:00
13 lines
288 B
JavaScript
13 lines
288 B
JavaScript
import log from '$electron/helpers/log.js'
|
|
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,
|
|
})
|
|
}
|