fixed web support

This commit is contained in:
Lorenzo Pichilli 2022-10-11 10:49:01 +02:00
parent 924022686d
commit bcbb8afaa4
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ void loadFile() {
final Uri? url = await controller.getUrl(); final Uri? url = await controller.getUrl();
expect(url, isNotNull); expect(url, isNotNull);
expect(url!.scheme, 'file'); expect(url!.scheme, kIsWeb ? 'http' : 'file');
expect(url.path, expect(url.path,
endsWith("test_assets/in_app_webview_initial_file_test.html")); endsWith("test_assets/in_app_webview_initial_file_test.html"));

View File

@ -325,7 +325,7 @@ window.flutter_inappwebview = {
} }
} }
}, },
goForwardOrForward: function(steps) { goBackOrForward: function(steps) {
var iframe = webView.iframe; var iframe = webView.iframe;
if (iframe != null) { if (iframe != null) {
try { try {