Browse Source

格式调整

pull/396/head
王良 4 days ago
parent
commit
7e6da16050
  1. 4
      packages/core/src/shell/scripts/set-system-proxy/index.js
  2. 2
      packages/gui/src/bridge/api/backend.js
  3. 4
      packages/gui/src/bridge/tongji/front.js

4
packages/core/src/shell/scripts/set-system-proxy/index.js

@ -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

2
packages/gui/src/bridge/api/backend.js

@ -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')

4
packages/gui/src/bridge/tongji/front.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…
Cancel
Save