Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

Hijack Cordova webview link click.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published