From 26a340ac565e943359734b77c2c1809fe5736ed4 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 6 Sep 2023 12:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=B0=83=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/lib/hosts-switch/webapp/components/home.js | 2 -- usr/lib/hosts-switch/webapp/utils/index.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/usr/lib/hosts-switch/webapp/components/home.js b/usr/lib/hosts-switch/webapp/components/home.js index 75c442e..68fbf28 100644 --- a/usr/lib/hosts-switch/webapp/components/home.js +++ b/usr/lib/hosts-switch/webapp/components/home.js @@ -98,8 +98,6 @@ class Home extends Component { ] async mounted() { - window.foo = this - let writable = await checkPermission() if (writable) { diff --git a/usr/lib/hosts-switch/webapp/utils/index.js b/usr/lib/hosts-switch/webapp/utils/index.js index ceb8c1e..bb362d9 100644 --- a/usr/lib/hosts-switch/webapp/utils/index.js +++ b/usr/lib/hosts-switch/webapp/utils/index.js @@ -6,8 +6,6 @@ import { nextTick } from 'wkit' -await native.init() - const APP_CONFIG_DIR = `${native.env.CONFIG_DIR}/hosts-switch` const HOST_FILE = `${APP_CONFIG_DIR}/host.cache` const LOCK_FILE = `${APP_CONFIG_DIR}/lock`