mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-18 20:05:05 -04:00
fix: linux link issue
This commit is contained in:
parent
7292a83e92
commit
64d08348e2
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,11 @@ Future<bool> afLaunchUri(
|
|||
);
|
||||
}
|
||||
|
||||
// on Linux, add http scheme to the url if it is not present
|
||||
if (isURL(url, {'require_protocol': true})) {
|
||||
uri = Uri.parse('https://$url');
|
||||
}
|
||||
|
||||
// try to launch the uri directly
|
||||
bool result;
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue