Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InAppBrowserEvnet doesn't have "data" property #1077

Open
3 tasks done
weakguy96 opened this issue Nov 21, 2024 · 1 comment
Open
3 tasks done

InAppBrowserEvnet doesn't have "data" property #1077

weakguy96 opened this issue Nov 21, 2024 · 1 comment
Labels

Comments

@weakguy96
Copy link

weakguy96 commented Nov 21, 2024

Bug Report

Problem

What is expected to happen?

That the event of type InAppBrowserEvent returned from addEventListener has property data as per documentation.

What does actually happen?

There is no data property on type InAppBrowserEvent

Information

https://cordova.apache.org/docs/en/12.x/reference/cordova-plugin-inappbrowser/index.html#inappbrowserevent-properties

Version information

Cordova: 12.0.0
Cordova Plugin InAppBrowser: 6.0.0
Operating System: Linux

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@breautek breautek added the bug label Nov 26, 2024
@breautek
Copy link
Contributor

For clarity, the bug report refers to the typings:

interface InAppBrowserEvent extends Event {
/** the eventname, either loadstart, loadstop, loaderror, or exit. */
type: string;
/** the URL that was loaded. */
url: string;
/** the error code, only in the case of loaderror. */
code: number;
/** the error message, only in the case of loaderror. */
message: string;
}

Which lacks the data property, though it has other properties even though the event may not always include them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants