mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-11 18:22:49 +01:00
Merge branch 'fix_url_launch_mode' into 'main'
utils/url_launcher: force opening http(s) links in external browser Closes #519 See merge request famedly/fluffychat!1089
This commit is contained in:
commit
a60e1435c2
@ -84,7 +84,9 @@ class UrlLauncher {
|
||||
? 'xn--$hostPartPunycode'
|
||||
: hostPart;
|
||||
}).join('.');
|
||||
launchUrlString(uri.replace(host: newHost).toString());
|
||||
// Force LaunchMode.externalApplication, otherwise url_launcher will default
|
||||
// to opening links in a webview on mobile platforms.
|
||||
launchUrlString(uri.replace(host: newHost).toString(), mode: LaunchMode.externalApplication);
|
||||
}
|
||||
|
||||
void openMatrixToUrl() async {
|
||||
|
Loading…
Reference in New Issue
Block a user