fix second instance

This commit is contained in:
pompurin404 2024-08-18 16:34:47 +08:00
parent 45bd63e475
commit 71aedc1b70
No known key found for this signature in database

View File

@ -79,6 +79,7 @@ app.whenReady().then(async () => {
}) })
async function handleDeepLink(url: string): Promise<void> { async function handleDeepLink(url: string): Promise<void> {
if (!url.startsWith('clash://') && !url.startsWith('mihomo://')) return
try { try {
if (url.startsWith('clash://install-config')) { if (url.startsWith('clash://install-config')) {
url = url url = url