DiscordTauri/discord-tauri

No option to open links in default browser instead of webview

Opened this issue · 1 comments

I get that it's webview so it's a bit more annoying to work around this, but there really should be an option to open links in your default browser instead of webview

https://tauri.app/v1/api/js/shell/

We can use the workaround of calling open directly. Injecting a JS that makes every anchor tag run a specific function and the function initializes the open with the desired link (a bit of a stretch but not impossible)