cordova-plugin-hijack-webview-link-click

1.0.1 • Public • Published

cordova-plugin-hijack-webview-link-click

Hijack webview link clicks. Useful for opening “unrecognized” URLs from, eg., iframes, in Safari.

Methods

listen

Function to execute when the webview tries to navigate to an absolute URL.

Example:

const {HijackWebviewLinkClick} = window.cordova.plugins;
 
HijackWebviewLinkClick.listen((url) => {
    window.open(url, '_blank');
});

deactivate

Deactivates hijacking.

Example:

const {HijackWebviewLinkClick} = window.cordova.plugins;
HijackWebviewLinkClick.deactivate();

/cordova-plugin-hijack-webview-link-click/

    Package Sidebar

    Install

    npm i cordova-plugin-hijack-webview-link-click

    Weekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • thomaslindstr_m