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`