格式调整
parent
5fe8a43cfb
commit
7e6da16050
|
@ -1,12 +1,12 @@
|
||||||
/**
|
/**
|
||||||
* 获取环境变量
|
* 获取环境变量
|
||||||
*/
|
*/
|
||||||
const Registry = require('winreg')
|
|
||||||
const Shell = require('../../shell')
|
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const request = require('request')
|
const request = require('request')
|
||||||
|
const Registry = require('winreg')
|
||||||
const log = require('../../../utils/util.log')
|
const log = require('../../../utils/util.log')
|
||||||
|
const Shell = require('../../shell')
|
||||||
const extraPath = require('../extra-path/index')
|
const extraPath = require('../extra-path/index')
|
||||||
|
|
||||||
const execute = Shell.execute
|
const execute = Shell.execute
|
||||||
|
|
|
@ -4,8 +4,8 @@ import DevSidecar from '@docmirror/dev-sidecar'
|
||||||
import { ipcMain } from 'electron'
|
import { ipcMain } from 'electron'
|
||||||
import lodash from 'lodash'
|
import lodash from 'lodash'
|
||||||
|
|
||||||
const pk = require('../../../package.json')
|
|
||||||
const jsonApi = require('@docmirror/mitmproxy/src/json')
|
const jsonApi = require('@docmirror/mitmproxy/src/json')
|
||||||
|
const pk = require('../../../package.json')
|
||||||
const log = require('../../utils/util.log')
|
const log = require('../../utils/util.log')
|
||||||
|
|
||||||
const mitmproxyPath = path.join(__dirname, 'mitmproxy.js')
|
const mitmproxyPath = path.join(__dirname, 'mitmproxy.js')
|
||||||
|
|
|
@ -19,7 +19,9 @@ function ebtRenderer (ipcRenderer, siteId, router) {
|
||||||
ipcRenderer.on('electron-baidu-tongji-reply', (_, { text, isDevelopment }) => {
|
ipcRenderer.on('electron-baidu-tongji-reply', (_, { text, isDevelopment }) => {
|
||||||
console.log('electron-baidu-tongji-reply')
|
console.log('electron-baidu-tongji-reply')
|
||||||
/* istanbul ignore else */
|
/* istanbul ignore else */
|
||||||
if (isDevelopment) { document.body.classList.add('electron-baidu-tongji_dev') }
|
if (isDevelopment) {
|
||||||
|
document.body.classList.add('electron-baidu-tongji_dev')
|
||||||
|
}
|
||||||
|
|
||||||
window._hmt = window._hmt || []
|
window._hmt = window._hmt || []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue