Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener('click', (e: any) => {
- if (e.target.tagName === 'A' &&
- e.target.href.match(/^https?:\/\//)) {
- Log.Debug('catching link. opening in external browser');
- e.preventDefault();
- window.open(e.target.href, '_system');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement