From fce6f37ab60ec2c46f35f05bf6a14d27295ba8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E4=BB=A3=E7=B6=BA=E5=87=9B?= Date: Sun, 18 Aug 2024 21:16:36 +0800 Subject: [PATCH] feat: add usability check --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 839cee7..e867873 100644 --- a/src/App.vue +++ b/src/App.vue @@ -91,7 +91,7 @@ import type { GitCommit, GitProgress } from './workers/git'; import { gitCORS, type GitCORS } from './utils/gitCORS'; const isProcessing = ref(false); -const errorText = ref(''); +const errorText = ref(!window.showDirectoryPicker ? '悲报,你的浏览器不支持使用本更新器' : ''); const gitProgress = ref(); const updateType = useLocalStorage<'full' | 'increment'>('updateType', 'full'); const startCommit = useLocalStorage('startCommit', '');