Skip to content

Commit bce3e20

Browse files
committed
fixes as expected code
1 parent 51ae9dd commit bce3e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/url_launcher/url_launcher/lib/src/legacy_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Future<bool> launch(
7878
final bool isWebURL =
7979
url != null && (url.scheme == 'http' || url.scheme == 'https');
8080

81-
if ((forceSafariVC ?? forceWebView) && !isWebURL) {
81+
if (((forceSafariVC ?? false) || forceWebView) && !isWebURL) {
8282
throw PlatformException(
8383
code: 'NOT_A_WEB_SCHEME',
8484
message: 'To use webview or safariVC, you need to pass '

0 commit comments

Comments
 (0)