Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- var wrapper = {
- init: function () {
- if (typeof(opener) === 'object') {
- (opener !== null) ? closewin() : redirect();
- };
- }
- };
- function closewin() {
- window.close()
- };
- function redirect() {
- return window.location.replace(window.location.hostname)
- };
- wrapper.init();
- })();
Add Comment
Please, Sign In to add comment