fix(security): restrict external URL opening

Close: 7800
This commit is contained in:
Tunglies
2026-08-25 16:11:47 +08:00
parent b7c4f7d39b
commit 695fadf21e
17 changed files with 136 additions and 61 deletions
-8
View File
@@ -241,14 +241,6 @@ export async function openLogsDir() {
return invoke<void>('open_logs_dir').catch((err) => showNotice.error(err))
}
export const openWebUrl = async (url: string) => {
try {
await invoke('open_web_url', { url })
} catch (err: any) {
showNotice.error(err)
}
}
export async function cmdTestDelay(url: string) {
return invoke<number>('test_delay', { url })
}