From 4710f6223c593644b3ab0d84ecbb8726a8c79c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 29 Jun 2021 09:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E8=A7=84=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 6 +++++- src/js/app.js | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index af189ed..8716678 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dns-host", - "version": "1.2.1", + "version": "1.2.2", "description": "伪域名解析", "main": "src/main.js", "scripts": { @@ -26,6 +26,10 @@ "buildResources": "icons", "output": "build" }, + "electronDownload": { + "version": "9.0.0", + "mirror": "https://npm.taobao.org/mirrors/electron/" + }, "files": ["src/**/*", "node_modules/iofs/*"], "mac": { "category": "public.app-category.developer-tools", diff --git a/src/js/app.js b/src/js/app.js index f1ab911..3c4a950 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -13,9 +13,7 @@ import Utils from '/lib/utils.js' const log = console.log -const { remote, ipcRenderer } = require('electron') - -const WIN = remote.getCurrentWindow() +const { ipcRenderer } = require('electron') const $doc = Anot(document)