Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tns-core-modules/ui/web-view/web-view.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ function initializeWebViewClient(): void {
let request: any = arguments[1];
let error: any = arguments[2];

super.onReceivedError(view, request, error, null);
// before API version 23 there's no onReceiveError with 3 parameters, so it shouldn't come here
// but we don't have the onReceivedError with 3 parameters there and that's why we are ignorint tye typescript error
// @ts-ignore TS2554
super.onReceivedError(view, request, error);

const owner = this.owner;
if (owner) {
if (traceEnabled()) {
Expand Down Expand Up @@ -173,4 +177,4 @@ export class WebView extends WebViewBase {
return nativeView.reload();
}
}
}
}