mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-12-18 18:35:55 +01:00
14 lines
289 B
JavaScript
14 lines
289 B
JavaScript
import log from '@electron/helpers/log.js'
|
|
|
|
import appStore from './store.js'
|
|
import { createProxy } from './index.js'
|
|
|
|
const debug = appStore.get('common.debug') || false
|
|
|
|
if (debug) {
|
|
Object.assign(console, {
|
|
...createProxy(log.functions, log.levels),
|
|
raw: console.log,
|
|
})
|
|
}
|