mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-09 20:02:20 +08:00
fix(security): restrict external URL opening
Close: 7800
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user