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)