fix(deep-link): Remove getCurrent call in onOpenUrl (#2008)

This commit is contained in:
Fabian-Lars
2024-11-09 10:05:46 -03:00
committed by GitHub
parent 3449dd5a8f
commit b2aea04567
3 changed files with 8 additions and 19 deletions
-5
View File
@@ -99,11 +99,6 @@ export async function isRegistered(protocol: string): Promise<boolean> {
export async function onOpenUrl(
handler: (urls: string[]) => void
): Promise<UnlistenFn> {
const current = await getCurrent()
if (current) {
handler(current)
}
return await listen<string[]>('deep-link://new-url', (event) => {
handler(event.payload)
})