From bcbb8afaa41d3bef1d0cab3676d1ae079cddd8a7 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Tue, 11 Oct 2022 10:49:01 +0200 Subject: [PATCH] fixed web support --- example/integration_test/in_app_webview/load_file.dart | 2 +- lib/assets/web/web_support.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/integration_test/in_app_webview/load_file.dart b/example/integration_test/in_app_webview/load_file.dart index e42141ad..25ca0b00 100644 --- a/example/integration_test/in_app_webview/load_file.dart +++ b/example/integration_test/in_app_webview/load_file.dart @@ -46,7 +46,7 @@ void loadFile() { final Uri? url = await controller.getUrl(); expect(url, isNotNull); - expect(url!.scheme, 'file'); + expect(url!.scheme, kIsWeb ? 'http' : 'file'); expect(url.path, endsWith("test_assets/in_app_webview_initial_file_test.html")); diff --git a/lib/assets/web/web_support.js b/lib/assets/web/web_support.js index 7e58be1a..e84e37df 100644 --- a/lib/assets/web/web_support.js +++ b/lib/assets/web/web_support.js @@ -325,7 +325,7 @@ window.flutter_inappwebview = { } } }, - goForwardOrForward: function(steps) { + goBackOrForward: function(steps) { var iframe = webView.iframe; if (iframe != null) { try {