Skip to content

Commit

Permalink
修復「更新跳轉出現異常」 (#211)
Browse files Browse the repository at this point in the history
* Fix: use launchUrl and mode to replace canLaunchUrl

* Style: Formatted
  • Loading branch information
ntut-xuan authored Dec 15, 2023
1 parent d00cc19 commit 115a7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/version/update/app_update.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class AppUpdate {
static void _openAppStore() async {
final url = AppLink.storeUrlString;
if (await canLaunchUrl(Uri.parse(url))) {
await canLaunchUrl(Uri.parse(url));
await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
}
}
}

0 comments on commit 115a7af

Please sign in to comment.