Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let new_window = ctrl.$window.open(super_secret_url, '_blank', 'location=no,toolbar=no'); //get around the popup blocker
- new_window.addEventListener('loadstop', (event) => {
- if (event.url.match("/window/close")) {
- new_window.close();
- ctrl.redirect();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement