-
+
+
+
+

+
From 7e6da16050c9de90aa64c62554b6cdc3159f3c40 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com>
Date: Mon, 18 Nov 2024 16:24:05 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
packages/core/src/shell/scripts/set-system-proxy/index.js | 4 ++--
packages/gui/src/bridge/api/backend.js | 2 +-
packages/gui/src/bridge/tongji/front.js | 4 +++-
3 files changed, 6 insertions(+), 4 deletions(-)
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 || []