fixed web support
This commit is contained in:
parent
924022686d
commit
bcbb8afaa4
|
@ -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"));
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue