Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
fix(inappwebview): future remains unresolved when pageview redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Dec 2, 2021
1 parent 8119244 commit e2fc518
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class FlutterWebviewProvider extends HtmlDOMProvider {
eventer!
.waitUntil(
eventer!.onLoad,
(final Uri receivedUri) => uri == receivedUri,
(final Uri receivedUri) => true,
)
.then((final Uri uri) {
future.complete();
Expand All @@ -80,7 +80,7 @@ class FlutterWebviewProvider extends HtmlDOMProvider {
eventer!
.waitUntil(
eventer!.onLoad,
(final Uri receivedUri) => uri == receivedUri,
(final Uri receivedUri) => true,
)
.then((final Uri uri) async {
await webview!.webViewController.callAsyncJavaScript(
Expand Down

0 comments on commit e2fc518

Please sign in to comment.