diff --git a/packages/core/src/shell/scripts/set-system-proxy/index.js b/packages/core/src/shell/scripts/set-system-proxy/index.js index 5b7e852..735600e 100644 --- a/packages/core/src/shell/scripts/set-system-proxy/index.js +++ b/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 path = require('path') const request = require('request') +const Registry = require('winreg') const log = require('../../../utils/util.log') +const Shell = require('../../shell') const extraPath = require('../extra-path/index') const execute = Shell.execute diff --git a/packages/gui/src/bridge/api/backend.js b/packages/gui/src/bridge/api/backend.js index 6697e8b..1ebcf78 100644 --- a/packages/gui/src/bridge/api/backend.js +++ b/packages/gui/src/bridge/api/backend.js @@ -4,8 +4,8 @@ import DevSidecar from '@docmirror/dev-sidecar' import { ipcMain } from 'electron' import lodash from 'lodash' -const pk = require('../../../package.json') const jsonApi = require('@docmirror/mitmproxy/src/json') +const pk = require('../../../package.json') const log = require('../../utils/util.log') const mitmproxyPath = path.join(__dirname, 'mitmproxy.js') diff --git a/packages/gui/src/bridge/tongji/front.js b/packages/gui/src/bridge/tongji/front.js index 53cdf37..4d54f3b 100644 --- a/packages/gui/src/bridge/tongji/front.js +++ b/packages/gui/src/bridge/tongji/front.js @@ -19,7 +19,9 @@ function ebtRenderer (ipcRenderer, siteId, router) { ipcRenderer.on('electron-baidu-tongji-reply', (_, { text, isDevelopment }) => { console.log('electron-baidu-tongji-reply') /* 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 || []